M marathonlady Registered User. Local time Yesterday, 21:56 Joined Jul 10, 2002 Messages 120 May 20, 2004 #1 I have the code to compact a database, but what is the code to see if the database is in use? Thanks in advance.
I have the code to compact a database, but what is the code to see if the database is in use? Thanks in advance.
ghudson Registered User. Local time Yesterday, 21:56 Joined Jun 8, 2002 Messages 6,193 May 20, 2004 #2 Externally... Code: If Dir("X:\YourDatabase.ldb") <> "" Then MsgBox "The #$%^&* database is still open!", vbCritical, "Compact Error" Exit Sub Else MsgBox "All clear, compact away." End If
Externally... Code: If Dir("X:\YourDatabase.ldb") <> "" Then MsgBox "The #$%^&* database is still open!", vbCritical, "Compact Error" Exit Sub Else MsgBox "All clear, compact away." End If