Article ID: 177592
Article Last Modified on 1/8/2003
uc.close
SET uc = Nothing
Dim myConnect As String
myConnect = uc.Connect
uc.EstablishConnection
uc.Close
uc.Connect = myConnect
' *** To workaround the problem:
' *** Uncomment the 2 lines of VB code to re-set
' *** Connect property using variable myConnect
' ***
Dim uc As New UserConnection1
Dim myConnect As String
Private Sub Command1_Click()
' myConnect = uc.Connect
Debug.Print uc.Connect
uc.EstablishConnection
End Sub
Private Sub Command2_Click()
uc.Close
' uc.Connect = myConnect
Debug.Print uc.Connect
End Sub
Private Sub Form_Load()
Command1.Caption = "Establish Connection"
Command2.Caption = "Close Connection"
End Sub
Private Sub Form_Unload(Cancel As Integer)
Set uc = Nothing
End Sub
166281 HOWTO: Create and Implement a UserConnection
Additional query words: kbVBp500 kbVBp600 kbdse kbDSupport kbVBp
Keywords: kbprb KB177592