Article ID: 152318 - Last Review: October 17, 2003 - Revision: 2.0 FIX: DAO SDK's CdbRecordset::Requery() May FailThis article was previously published under Q152318 SYMPTOMS
Attempting to invoke the DAO SDK's CdbRecordset::Requery() method of the
CdbRecordset class when the recordset has been opened with dbOpenDynaset
and dbDenyWrite, may result in an error message similar to the following:
Unhandled exception in <YourApp>.exe (DAO3032.DLL): 0xC0000005: Access Violation CAUSE
Within the implementation of CdbRecordset::Requery found in DBDAO.CPP (line
1645), the casting of a COleVariant method is performed incorrectly. The
cast is performed as:
RESOLUTION
Derive a new class from CdbRecordset and override the Requery method with
the following:
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This bug was corrected in fixed in the
DAO SDK that comes with Visual C++ version 5.0.
APPLIES TO
| Article Translations
|

Back to the top
