Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vb recordsets...
Message
De
19/10/1999 05:32:30
 
 
À
15/10/1999 06:16:34
John Vlahos
V I Software Solutions Design
Mississauga, Ontario, Canada
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00276735
Message ID:
00278032
Vues:
18
You can use the On error handler for trapping when record count is 0, try this following command:

Private sub RecordSet_Checker()
On Error goto ErrHand:
MyData.RecordSet.MoveLast
MyRecordCount=MyData.RecordSet.Reccount
Exit Sub
ErrHand:
Select Case Err.Number
Case 3021
Message "No record found"
Resume Next
End Select
End Sub
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform