Does anyone know how can I delete a table that I use in the recordresource of
my report after the user closes the report?
I'd suggest that you "unask" the question. It's essentially NEVER necessary to
create a new table just for the purpose of running a report! If you have a
MakeTable query, it contains a simple Select query; you can base your report
on that query.
Creating a new table, registering it into the systems tables, filling it with
data, and then deleting it are all just absolutely unnecessary overhead. In
addition, you'll bloat your database since the space it occupies will not be
freed when the table is deleted.
Why do you feel that you need to create and then delete a table just to print
a report? Is there something I'm missing?