The information in this article applies to:
SUMMARYThe Microsoft Foundation Classes (MFC) documentation for CDaoRecordset::AddNew() and the DAO SDK documentation for the AddNew method state:
The documentation is incorrect. Beginning with Jet 3.0, this behavior is
not guaranteed. The behavior was changed to improve performance as well as
concurrency issues.To demonstrate the change in behavior, delete a record in a recordset of 300+ records and then call AddNew(). Then, traverse the recordset until you see where the record has been added. Typically, this record will be inserted in the 253rd record rather than at the end of the recordset. MORE INFORMATIONIf the goal is to make the newly added record the current record, you should get the bookmark of the last modified record and move to that bookmark. You can do this with MFC DAO by doing the following:
STATUSThis problem was corrected in the documentation for Visual C++, version 6.0. Additional query words: AddNew MoveLast
Keywords : kbdocerr kbDAO kbMFC kbDocs kbVC420bug kbVC500bug kbVC600fix |
Last Reviewed: July 28, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |