Skip to main content

AccessTr.neT


Etiketler
Yazar: esrefigit - Cevaplar: 7 - İzleme: 5185
program belirli bir boyuta ulaştığında repair yapıp yeniden açma
Public Function AutoCompactCurrentProject()
Dim fs, f, S, filespec
Dim strProjectPath As String, strProjectName As String

strProjectPath = Application.CurrentProject.Path
strProjectName = Application.CurrentProject.Name
filespec = strProjectPath & "\" & strProjectName
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFile(filespec)
S = CLng(f.Size / 1000000) 'convert size of app from bytes to Mb’s
If S > 20 Then 'ed
Task