Open Database Error

Open Database Error

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.

See also  Digital Signage Solutions for Agile Software Development Teams

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist