The information in this article applies to:
SYMPTOMSIf you run the DAOENROL sample from Visual C++ version 4.0, 4.1, or 4.2 under Windows 95 and you add a record, you may not see the record in the result set. If you exit the program, restart it and scroll through the records. You will then see the added record. The "More Information" section below gives a more detailed scenario that shows the problem. CAUSEThe CDaoRecordView class keeps track of the first and last record by using Microsoft Jet bookmarks. Microsoft Jet bookmarks should not be assumed to be valid following a Requery(). DAOENROL does a Requery() following an add and a move, but it continues to use the bookmark values it obtained before the Requery() was done. RESOLUTION
To fix the DAOENROL sample, you must re-initialize the CDaoRecordView
bookmark members following a Requery(). DAOENROL performs a Requery() in
three places:
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATIONSteps to Reproduce Problem
REFERENCESFor more information, please see the following article in the Microsoft Knowledge Base: Q145686 PRB: CDaoRecordView Bookmark Members Invalid After Requery() Additional query words: kbVC400bug
Keywords : kbother kbDAO kbDatabase kbMFC kbVC |
Last Reviewed: January 31, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |