Compacting Errors (1 Viewer)

D-Fresh

Registered User.
Local time
Today, 04:01
Joined
Jun 6, 2000
Messages
225
In my Access 97 database, I have the db compact using sendkeys after a function is run. My problem is if there is another user in the database, I get an error message about how someone else is in the db. Is there a way to trap this error message? I would like to compact if you can, if not, then just resume without any errors. Any help would be greatly appreciated. Thanks.

Doug
 

Capilano

Registered User.
Local time
Today, 04:01
Joined
Feb 19, 2001
Messages
63
Hi... Have you found a solution to your problem yet? If not, please contact me because I have code that will show you is still accessing the database when you are trying to compact.

Pat
 

chrismcbride

Registered User.
Local time
Today, 04:01
Joined
Sep 7, 2000
Messages
301
Private Sub CompactDB()
On Error GoTo EH

...code...

SeeYa:
Exit Sub

EH:
resume Seeya


HTH
Chris
 

Users who are viewing this thread

Top Bottom