CdbRecordset::Edit Method

Copies the current record from an updatable Recordset object to the copy buffer for subsequent editing.

Syntax

VOIDEdit(VOID);

Remarks

Once you use the Edit method, changes made to the current record's fields are copied to the copy buffer. After you make the desired changes to the record, use the Update method to save your changes. The current record remains current after you use Edit.

Usage

#include <afxole.h>
#include <dbdao.h>

CdbRecordset      rst;
...               // Open the recordset.
rst.Edit();      // Edit the current record.
...               // Make changes to the record.
rst.Update();   // Save the change.
...
rst.Close();      // Close the recordset.