S
Stephen @ ZennHAUS
Hi Guys and Gals,
I have a number of reports that are based on a temporary table that is
generated from code based queries. As I don't want the table to remain in
the database once the report is completed, I am trying to delete the table
when the report closes using the following code.
Private Sub Report_Close()
DoCmd.DeleteObject acTable, "Temp"
End Sub
However, when I do this I get the error that the table is still in use by
the report and therefore cannot be deleted.
Any suggestions on how I could delete this table would be appreciated.
Cheers
Stephen @ ZennHAUS
I have a number of reports that are based on a temporary table that is
generated from code based queries. As I don't want the table to remain in
the database once the report is completed, I am trying to delete the table
when the report closes using the following code.
Private Sub Report_Close()
DoCmd.DeleteObject acTable, "Temp"
End Sub
However, when I do this I get the error that the table is still in use by
the report and therefore cannot be deleted.
Any suggestions on how I could delete this table would be appreciated.
Cheers
Stephen @ ZennHAUS