I have a make table query I run to produce the data for a report. The query is executed in code with a DoCmd.RunSQL call. The criteria is based on user selection from some list boxes populated from other tables.
The user clicks a button. The MT Query executes. Then the report pops up. The problem occurs if the user makes a differernt selection and clicks the button a second time to produce a different report based on different data.
An error occurs because the MT query tries create the table a second time while the original report is still open in preview mode. I would like the user to be able to view two reports side by side.
Any ideas? I get Run time error 3211 because the report seems to have the table locked. Is there away to release the table with the report still visible so i can create the next report?
Thanks
The user clicks a button. The MT Query executes. Then the report pops up. The problem occurs if the user makes a differernt selection and clicks the button a second time to produce a different report based on different data.
An error occurs because the MT query tries create the table a second time while the original report is still open in preview mode. I would like the user to be able to view two reports side by side.
Any ideas? I get Run time error 3211 because the report seems to have the table locked. Is there away to release the table with the report still visible so i can create the next report?
Thanks