Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

On Close Report

Status
Not open for further replies.

lowman42

Programmer
Jul 27, 2001
4
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top