J
Justin
1) I have this database when it opens, it checks to see if the file is less
than 500,000kb.
If it is over, then a msg will appear and will ask the user to please
compact the database
now my problem is teh coding.
Sub ApplicationInformation()
Dim Tmp_Filesize As Long
Dim Msg, Style, Title, Help, Ctxt, Response, MyString
Tmp_Filesize = (FileLen("F:\System Analyst\DTF.mdb")) / 1024
If Tmp_Filesize > 300000 Then
MsgBox ("Database Size is greater then 500,0000 KB, Please Compact
Database") ' Define message.
Style = vbOK + vbCritical + vbDefaultButton2 ' Define buttons.
Title = "DB Size Warning" ' Define title.
Help = "DEMO.HLP" ' Define Help file.
Ctxt = 1000 ' Define topic
End If
End Sub
See, everytime i move this database from different location, i have to
change the tmp_file name in this code. Is there a way to have it so that it
checks the database no matter the location the database is store??
2) Also, is there any code out there where I can have this database resize
it self depending on the users' resolution screen
than 500,000kb.
If it is over, then a msg will appear and will ask the user to please
compact the database
now my problem is teh coding.
Sub ApplicationInformation()
Dim Tmp_Filesize As Long
Dim Msg, Style, Title, Help, Ctxt, Response, MyString
Tmp_Filesize = (FileLen("F:\System Analyst\DTF.mdb")) / 1024
If Tmp_Filesize > 300000 Then
MsgBox ("Database Size is greater then 500,0000 KB, Please Compact
Database") ' Define message.
Style = vbOK + vbCritical + vbDefaultButton2 ' Define buttons.
Title = "DB Size Warning" ' Define title.
Help = "DEMO.HLP" ' Define Help file.
Ctxt = 1000 ' Define topic
End If
End Sub
See, everytime i move this database from different location, i have to
change the tmp_file name in this code. Is there a way to have it so that it
checks the database no matter the location the database is store??
2) Also, is there any code out there where I can have this database resize
it self depending on the users' resolution screen