PRB: GetRowsEx Re-fetches Last Read Record in Subsequent Calls (153807)
The information in this article applies to:
- The DAO SDK, when used with:
This article was previously published under Q153807 SYMPTOMS
The DAO SDK defines a function called GetRowsEx() that is a method of the
DAO recordset object. Unlike the GetRows() method, the GetRowsEx() method
does not advance to the next unread record after calling it. Instead, it
begins fetching with the last record fetched or the current record. For
example, if you have 10 records in a resultset and you are fetching 5 of
them at a time using GetRowsEx(), you will see that record #5 gets fetched
twice, once for each GetRowsEx() call. Records 1 through 5 will be fetched
in the first call to GetRowsEx() and records 5 through 10 will be fetched
in the second call to GetRowsEx().
RESOLUTION
Call MoveNext() for the recordset before executing the next call to
GetRowsEx(). The MoveNext() call will make the next unread record the
current record.
STATUS
This behavior is by design.
| Modification Type: | Major | Last Reviewed: | 12/10/2003 |
|---|
| Keywords: | KB153807 |
|---|
|