I want to check if an object has been created before I close a program. I have tried using ISOBJECT(object variable) but this returns TRUE every time, then the program bombs with "object variable not set" at the "disconnect" method. This is my code
If IsObject(UDSession) = True Then
UDSession.Disconnect
Set UDSession = Nothing
End If
Thanks
If IsObject(UDSession) = True Then
UDSession.Disconnect
Set UDSession = Nothing
End If
Thanks