Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check Existing Recordset Whether exist.
Message
From
14/11/2002 09:46:04
 
 
To
11/11/2002 22:23:37
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00721381
Message ID:
00722668
Views:
15
>Hi,
>
>Is there any function to check whether the recordset exist. Cause I'd like to close those unclosed recordset before release form
>
>Thanks
>Aston

You could check if the object exists with Is Nothing and then check the State property to see if it's open and needs closing. Something like: (syntax not tested)
If Not myRS Is Nothing Then
  If myRS.State = adStateOpen Then
    myRS.Close
  End If
End If
'.. etc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform