The information in this article applies to:
SYMPTOMSWhen you update records in an Access database using the ODBC cursor library and you previously added a date/time field in Access without a date using the CRecordset (with TIMESTAMP_STRUCT) classes, MFC throws the following exception:
CAUSEThe ODBC WHERE clause fails to find the record it needs to update it. RESOLUTION
You must always enter a date in the Access date/time field for CRecordset
classes using the ODBC cursor library. MORE INFORMATION
If you have to use the ODBC cursor library, you must always enter a date
along with a time in the Access date/time field. If you only enter a time,
the recordset will fail to post updates and the MFC exception "No Rows
Affected" will be thrown. This occurs because the ODBC cursor library
attempts to update the database using an UPDATE clause and attempts to
select all columns to ensure a unique record. During this selection, the
date field fails to be resolved. REFERENCESVisual C++, Microsoft Foundation Class Reference, Class Library Reference: Crecordset; CDatabase Additional query words: MfcDatabase kbVC600 kbVC500 kbdse kbODBC kbMCF kbJet
Keywords : |
Last Reviewed: July 29, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |