FIX: GetRows Method of ADO Object Returns Incorrect Value (198528)
The information in this article applies to:
- ActiveX Data Objects (ADO) 2.0
- ActiveX Data Objects (ADO) 2.1
- ActiveX Data Objects (ADO) 2.5
This article was previously published under Q198528 SYMPTOMS
The GetRows method of an ADO recordset object moves the record pointer
forward one row too many when dealing with greater than 100 rows. GetRows
simply places the records from the recordset object into an array. After
calling GetRows, the next unread record is supposed to become the current
record. When getting 1000 rows, for example, the next record should be
1001, but instead it places the user on record 1002.
RESOLUTION
The user can call 100 records or less with GetRows rather then greater than
100.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This behavior is fixed in Active Data
Objects version 2.1 and later.
Modification Type: | Minor | Last Reviewed: | 3/14/2005 |
---|
Keywords: | kbADO210fix kbBug kbMDAC250fix KB198528 |
---|
|