MS Access - Table locked by another person or process, after closing form

91 views Asked by At

I am running a sub to 'snapshot' data from a pass-through query (which is slow) and store the results to a table. It is supposed to delete the table, then re-create it to be an updated snapshot of the pass-through query.

I know that before deleting the table I must close anything locking it. I only have one unbound form, and one subform on that which draws data from a query involving the table in question. I have a DoCmd.close action that closes the main form, but the line deleting the table still errors that it's 'in use by another person or process'.

How do I unlock it, is there more I should be doing other than closing the form?

0

There are 0 answers