The information in this article applies to:
SYMPTOMSIn some cases, when you use CDaoRecordView, added records will not show up in the result set after calling Requery() on the CDaoRecordset. CAUSECDaoRecordView uses Jet engine bookmarks to determine when you are on the first or last record of the related CDaoRecordset. Jet engine bookmarks are not guaranteed to be valid following a Requery(). RESOLUTIONTo avoid the problem, re-initialize the CDaoRecordView bookmark members to indicate that they are not valid bookmark values following any Requery() on the related CDaoRecordset. The following example shows how this might be done in a CDaoRecordView-derived class's OnMove() function:
If you call Requery() in any other case from your CDaoRecordView-derived
class, you should also perform this re-initialization.
STATUSThis behavior is by design. Additional query words:
Keywords : kbusage kbDAO kbDatabase kbMFC kbVC kbVC400 kbVC410 kbVC420 kbVC500 kbVC600 |
Last Reviewed: January 31, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |