Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refreshing RECORDSETS / RecordCount
Message
De
17/08/2001 15:09:20
Jason Dalio
Northern Interior Regional Health Board
Prince George, Colombie Britannique, Canada
 
 
À
17/08/2001 14:29:54
Information générale
Forum:
Visual Basic
Catégorie:
VBA
Divers
Thread ID:
00545560
Message ID:
00545588
Vues:
26
Simply do a check to make sure that the recordset actually contains records before doing the recordcount. i.e.:

rstMyRecordset.Open "SELECT * FROM tblMyTable;"
With rstMyRecordset
If .BOF and .EOF then
'empty recordset
Else
rstMyRecordset.MoveLast
RecordCount = rstMyRecordset.RecordCount
End if
End With
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform