The information in this article applies to:
SYMPTOMS
When the MFC Database classes that come with Visual C++ version 2.0 are
used, any field that has a NULL value cannot be updated to a non-NULL value
successfully.
The Update() function doesn't return any error, but the m_Name value is
still set to NULL.
RESOLUTIONUse the MFC Database Classes that come with Visual C++ version 2.1 or above. Otherwise, for the field to be updated, force the bNull flag of the SetFieldNull() method to FALSE before calling the Update(). The following code works:
STATUSThis behavior is by design. Additional query words: 2.00 3.00 ODBC
Keywords : kbcode kbDatabase kbMFC kbODBC kbVC |
Last Reviewed: January 26, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |