FIX: Date/Time Fields Fail to Update When Using a DynasetLast reviewed: September 18, 1997Article ID: Q126134 |
2.00
WINDOWS NT
kbprg kbfixlist kbbuglist
The information in this article applies to:
SYMPTOMSAn attempt to update a date/time field using a CTime object will fail. The CRecordset::RFX_Date() doesn't work correctly, and the date/time field in the database table isn't changed. This problem occurs only when passing CRecordset::dynaset as the first parameter to the CRecordset::Open() member function.
CAUSEThe RFX_Date() function that takes a CTime object as a parameter fails to transfer the CTime data to its TIMESTAMP_STRUCT proxy before performing an update.
RESOLUTIONTo work around this problem, follow these steps:
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem was corrected in Microsoft Visual C++ version 2.1.
MORE INFORMATIONMFC Technote #43 contains more information about record field exchange (RFX) functions and CFieldExchange operations.
|
Additional reference words: 2.00 3.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |