Dec 18, 2001 1 #2 BobLoblaws Programmer Nov 20, 2001 149 CA If adConn.State = adStateOpen Then ' Connection is open Else ' Connection is closed End If adStateOpen = 1 adStateClosed = 0 Upvote 0 Downvote
If adConn.State = adStateOpen Then ' Connection is open Else ' Connection is closed End If adStateOpen = 1 adStateClosed = 0
Dec 18, 2001 Thread starter #3 99mel Programmer Oct 18, 1999 379 GB oops, sorry i mean how do i check if the object exists. i get the following error message when i try and reference the object: "Object variable of With block variable not set" Thanks again! Upvote 0 Downvote
oops, sorry i mean how do i check if the object exists. i get the following error message when i try and reference the object: "Object variable of With block variable not set" Thanks again!
Dec 18, 2001 #4 BobLoblaws Programmer Nov 20, 2001 149 CA if not adConn is nothing then ' do some stuff else ' can't use adconn end if As well, you might be getting that error if you do not Set adConn = New ADODB.Connection before you try to make a connection. Upvote 0 Downvote
if not adConn is nothing then ' do some stuff else ' can't use adconn end if As well, you might be getting that error if you do not Set adConn = New ADODB.Connection before you try to make a connection.
Dec 18, 2001 Thread starter #5 99mel Programmer Oct 18, 1999 379 GB WOHOOO Cheers for that! Upvote 0 Downvote
Dec 18, 2001 #8 BobLoblaws Programmer Nov 20, 2001 149 CA There a first for everything... : Upvote 0 Downvote