CRecordset::CancelUpdate

void CancelUpdate( );

Remarks

Call this member function to cancel any pending updates, due to an Edit or AddNew operation, before Update is called.

Note   This member function is not applicable on recordsets that are using bulk row fetching, since such recordsets cannot call Edit, AddNew, or Update. For more information about bulk row fetching, see the article Recordset: Fetching Records in Bulk (ODBC) in Visual C++ Programmer’s Guide.

If automatic dirty field checking is enabled, CancelUpdate will restore the member variables to the values they had before Edit or AddNew was called; otherwise, any value changes will remain. By default, automatic field checking is enabled when the recordset is opened. To disable it, you must specify the CRecordset::noDirtyFieldCheck in the dwOptions parameter of the Open member function.

For more information about updating data, see the article Recordset: Adding, Updating, and Deleting Records (ODBC) in Visual C++ Programmer’s Guide.

CRecordset OverviewClass MembersHierarchy Chart

See Also   CRecordset::AddNew, CRecordset::Edit, CRecordset::Update