Is a table locked?

PearlGI

Registered User.
Local time
Today, 00:09
Joined
Aug 30, 2001
Messages
125
Is it possible to detect if a table is locked (i.e. a query, report or form using a table is open).

I'm trying to automatically delete selected tables on a periodic basis, but the code falls over if the table is currently in use.

How can I trap for this so the delete line can be skipped?
 
Check out the OnError Access Help file to trap the error. If it is the error that you describe, then use the Resume Next Statement.
 
Thanks, that does the trick.:)
 

Users who are viewing this thread

Back
Top Bottom