Article ID: 165606
Article Last Modified on 12/10/2003
APPLIES TO
- Microsoft Visual C++ 4.2 Enterprise Edition
- Microsoft Visual C++ 4.2 Enterprise Edition
- Microsoft Visual C++ 5.0 Enterprise Edition
- Microsoft Visual C++ 6.0 Enterprise Edition
- Microsoft Visual C++ 4.2 Professional Edition
- Microsoft Visual C++ 4.2 Professional Edition
- Microsoft Visual C++ 5.0 Professional Edition
- Microsoft Visual C++ 6.0 Professional Edition
- Microsoft Visual C++ 6.0 Standard Edition
This article was previously published under Q165606
SYMPTOMS
When you open a CRecordset with the skipDeletedRecords option set, it's
Move() member function asserts if the nRows parameter is 0.
CAUSE
The reason for this behavior is to prevent the refresh of rows that are
deleted by other client applications using the same data. Since no scroll
direction is specified by a Move(0) call, it is not possible to determine
which record to skip to if the current record was deleted. A Move(0) on a
deleted row would have an ambiguous outcome. To prevent the possibility of
doing a Move() to a deleted record, Move(0) is not allowed when the
skipDeletedRecords option is set.
STATUS
This behavior is by design.
Additional query words: kbvc420 kbvc500 kbvc600
Keywords: kbdatabase kbprb kbusage KB165606