The information in this article applies to:
SYMPTOMSWhen you use the Microsoft Foundation Classes (MFC) ODBC to update a record that has not been modified since the last call to CRecordset::Update(), the fields within the record show up as dirty. CAUSENeither the CRecordset::Edit() function nor the CRecordset::Update() function clear the dirty flag. RESOLUTIONOverride CRecordset::Update() and clear the dirty flags for your recordset after calling the base class CRecordset::Update(). STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been fixed in Visual C++ version 5.0. MORE INFORMATIONThe following sample code displays the problem. The second sample shows how to implement the workaround: Sample Code 1
Sample Code 2
Additional query words: kbVC420bug kbDSupport
Keywords : kbDatabase kbMFC kbODBC kbVC kbVC500fix |
Last Reviewed: July 26, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |