CRecordset::CancelUpdate

Cancels any pending updates, caused by an Edit or AddNew operation, before Update is called.

void CancelUpdate( );

Remarks

Nota

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).

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).

Requirements

Header: afxdb.h

See Also

Reference

CRecordset Class

Hierarchy Chart

CRecordset::AddNew

CRecordset::Edit

CRecordset::Update

Other Resources

CRecordset Members