Article ID: 186267 - Last Review: March 2, 2005 - Revision: 1.1 PRB: MaxRecords Property Is Not Used in Access Queries with ADOThis article was previously published under Q186267 On This PageSYMPTOMS
Using the MaxRecords property of an ADO Recordset object does not affect the number of records returned in queries against Microsoft Access
databases.
CAUSE
The MaxRecords property depends on functionality exposed by the underlying OLE DB provider or ODBC driver to limit the number of rows returned by the query. This functionality is optional for ODBC drivers and OLE DB providers. The Microsoft Access ODBC driver and Jet OLEDB provider do not expose this
functionality. This behavior may occur for other OLE DB providers and ODBC
drivers as well.
RESOLUTION
If you want to limit the number of records returned in a query against a
Microsoft Access database, use the TOP syntax in the query string rather
than the Recordset's MaxRecords property.
STATUS
This behavior is by design.
MORE INFORMATIONSteps to Reproduce BehaviorInstead of using the following code:APPLIES TO
| Article Translations
|

Back to the top
