Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check Existing Recordset Whether exist.
Message
De
14/11/2002 09:46:04
 
 
À
11/11/2002 22:23:37
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00721381
Message ID:
00722668
Vues:
16
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform