I am trying to delete a table on the close event of a report. I am running into error saying table in use. Tried to change the record source which brings up another error.
anytips.
I'm assuming that deleting a table is justified and your not just doing it because you don't know a better way
(i.e. the first attempt was a query that was too complex, it has to get done and the 'temp' table is in a front end which is local; or some equally good story).
You can't delete the data source for the report on it's close event... The table could also be open by another object.
If it is the data source for the report, chances are you should delete the table just before you usually create it...
otherwise open a form on your form's close event with an on timer event
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.