I am updating an application that was developed to make an executable test version. However, the live database is opened, not a test database. I have made a test database for this purpose. When I run my new executable and it is loading the live database I get the error: "Cannot perform this operation on an open database." I click OK and my application runs. I am not sure how to get rid of this error. It does not appear in the executable written by the previous programmer even though it was tested using the live database, and never using a test database. What generates this error and is there anyway for me to get rid of it?
For that, you have to go back to the original code, run a trace during debug to find out what line is causing the error. Then you need to either disable that line or add a "TableName.Close;" immediately prior to that line to close the table and allow the operation that's causing the error to proceed.