Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Relational Databases
Expertise: Beginner
Mar 18, 1999

Open Database Error

Question:
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?

Answer:
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.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap