Sep 3, 2004 #1 Denster Programmer Joined Apr 9, 2001 Messages 198 Location 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 Joined Sep 25, 2001 Messages 382 Location 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 Joined Jan 27, 2002 Messages 3,301 Location 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