ACC2000: RecordCount Property Returns Incorrect Number of Records (207652)
The information in this article applies to:
This article was previously published under Q207652 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
SYMPTOMS
The RecordCount property, when used with a recordset or snapshot, returns a recordset that has an incorrect number of records.
CAUSE
For recordsets and snapshots, Microsoft Access does not automatically
return the number of records that exist in the recordset. Rather, it
returns the number of records accessed.
RESOLUTION
To determine the exact number of records in a recordset or snapshot, use
the MoveLast method before checking the RecordCount property.
REFERENCESFor more information about the RecordCount property, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type RecordCount property in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbdta kbofficeprog kbprb kbProgramming KbVBA KB207652 |
---|
|