Creates a new record for an updatable Recordset object.
Syntax
VOIDAddNew(VOID);
Remarks
Use the AddNew method to create and add a new record in the CdbRecordset object. This method sets the fields to default values, and if no default values are specified, it sets the fields to NULL (the default values specified for a table-type Recordset).
After you modify the new record, use the Update method to save the changes and add the record to the Recordset. No changes occur in the database until you use the Update method.
Usage
#include <afxole.h>
#include <dbdao.h>
CdbRecordset rst;
...
rst.AddNew(); // Create an empty recordset.
... // Set the values of the recordset fields
rst.Update() // Save your changes.
rst.Close(); // Close the recordset.