DBAddNew Action

Creates and initializes a new record for an updatable Recordset object.

The DBAddNew action sets the EditMode property of the Recordset to EditAdd. Any changes to the new record are cached locally. The DBUpdate action posts the new record to the database and resets the EditMode property to EditNone. The DBCancelUpdate action deletes the new record and resets the EditMode property to EditNone.

If you call DBAddNew while editing the current record or while adding a new record, the DBUpdate action is called to save any changes before the new record is created.

Parameters

Recordset  -  (Required)

Specifies the name of the Recordset object to which the record should be added.

See Also

DBConnect Action | DBDisconnect Action | DBOpen Action | DBClose Action | DBFind Action | DBMove Action | DBAddNew Action | DBBeginTrans Action | DBCancelUpdate Action | DBCommitTrans Action | DBDelete Action | DBRollbackTrans Action | DBSeek Action | DBUpdate Action