I am using the following statement to check the connection:
If CnDB.State <> 1 Then
'reconnect
End If
If the connection is open (CnDB.State = 1)
then I try to open the RecordSet based on this connection...
But sometimes I got the error 'Connection failure' even
CnDB.State still equals to 1.
How to check the connection?
If CnDB.State <> 1 Then
'reconnect
End If
If the connection is open (CnDB.State = 1)
then I try to open the RecordSet based on this connection...
But sometimes I got the error 'Connection failure' even
CnDB.State still equals to 1.
How to check the connection?