G
Guest
Hi, I am using ADODB methods to open and read a database. In doing so, I
frequently get run-time errors that tell says the database is "Locked". I
would like to add logic before the db open statement (i.e., cnn.open) that
determines if the database is open or locked.
I would appreciate any feedback on how to test the status of a database. A
code sample would be great.
The ISSUE: For some unknown reason, when I switch between “Form-View†and
“Design-Viewâ€, I get a nasty run-time error. The error message is: “The
database has been placed in a state by user ‘Admin’ on machine … that
prevents it from being opened or locked.
I indirectly initiate a db open operation from the “Form_Load()†event
routine. In the Form_Load() sub, I call another routine (in another class
module) that does the actual db open.
If you have any idea what is going on, I would really appreciate your
feedback.
Thanks,
frequently get run-time errors that tell says the database is "Locked". I
would like to add logic before the db open statement (i.e., cnn.open) that
determines if the database is open or locked.
I would appreciate any feedback on how to test the status of a database. A
code sample would be great.
The ISSUE: For some unknown reason, when I switch between “Form-View†and
“Design-Viewâ€, I get a nasty run-time error. The error message is: “The
database has been placed in a state by user ‘Admin’ on machine … that
prevents it from being opened or locked.
I indirectly initiate a db open operation from the “Form_Load()†event
routine. In the Form_Load() sub, I call another routine (in another class
module) that does the actual db open.
If you have any idea what is going on, I would really appreciate your
feedback.
Thanks,