Sep 3, 2004 #1 Denster Programmer Apr 9, 2001 198 GB Need to put a check in the coding, to see if the database is open. then put an "if not" open it statement in. Thanks Denster
Need to put a check in the coding, to see if the database is open. then put an "if not" open it statement in. Thanks Denster
Sep 3, 2004 #2 Schroeder MIS Sep 25, 2001 382 US If it's an Access db, I check for the existence of the dbName.ldb file in the same directory. Upvote 0 Downvote
Sep 3, 2004 #3 zemp Programmer Jan 27, 2002 3,301 CA What do you mean by open? The program already has an open connection to it, or the database is opened by its program (like Access). If it is the former, what tools are you using? If you are using ADO then check the connection state. Code: If CONN.State = adStateOpen then 'connection is open Else 'Not open End If zemp Upvote 0 Downvote
What do you mean by open? The program already has an open connection to it, or the database is opened by its program (like Access). If it is the former, what tools are you using? If you are using ADO then check the connection state. Code: If CONN.State = adStateOpen then 'connection is open Else 'Not open End If zemp