M Mcgrco Registered User. Local time Today, 22:36 Joined Jun 19, 2001 Messages 118 Dec 10, 2001 #1 When my database opens up I want a piece of code that tells the user what size the database is. Ultimatly i want to warn the user when the database goes over a set size to compact it. Thanks
When my database opens up I want a piece of code that tells the user what size the database is. Ultimatly i want to warn the user when the database goes over a set size to compact it. Thanks
PearlGI Registered User. Local time Today, 22:36 Joined Aug 30, 2001 Messages 125 Dec 10, 2001 #2 Use the FileLen function. HTH
M Mcgrco Registered User. Local time Today, 22:36 Joined Jun 19, 2001 Messages 118 Dec 10, 2001 #3 I cant get the file len to work . it keeps coming up with an overflow message. the code Im using is Function size() Dim DBsize As Byte DBsize = FileLen("C:\Program Files\calers\uat\calers.mdb") MsgBox DBsize End Function
I cant get the file len to work . it keeps coming up with an overflow message. the code Im using is Function size() Dim DBsize As Byte DBsize = FileLen("C:\Program Files\calers\uat\calers.mdb") MsgBox DBsize End Function
PearlGI Registered User. Local time Today, 22:36 Joined Aug 30, 2001 Messages 125 Dec 10, 2001 #4 DBsize should be defined as LONG, not BYTE.