D
David
I have reports created in an Access 2002 database that contain subreports
where the recordsource of these subreports is a temporary table. I need to
delete these temporary tables as soon as the report closes. I have code in
the report_close event to drop the table, but I get the error "The database
engine could not lock the table <table name> because it is already in use by
another person or process". I assume this is because the subreport
displaying this data is still open on the main report.
Is there anything I can do to release the table lock? I've tried changing
the subreports recordsource to release it, but that's not working.
Any help is appreciated!
_david
where the recordsource of these subreports is a temporary table. I need to
delete these temporary tables as soon as the report closes. I have code in
the report_close event to drop the table, but I get the error "The database
engine could not lock the table <table name> because it is already in use by
another person or process". I assume this is because the subreport
displaying this data is still open on the main report.
Is there anything I can do to release the table lock? I've tried changing
the subreports recordsource to release it, but that's not working.
Any help is appreciated!
_david