Syntax
| EditModeEnum = recordsetobject.EditMode
| |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description
| Returns an EditModeEnum value that defines the editing status of the current record.
The EditMode property returns one of the EditModeEnum constants that describes the editing status of the current record. ADO stores this editing status information in an editing buffer. If you move to a current record that has been previously deleted or if you arrive at BOF or EOF, this property will return an error.
EditModeEnum Constants
| |||||||||||||||
See Also
| ||||||||||||||||
Example
| If objRecordset.EditMode = adEditInProgress Then
If MsgBox("New Record Added", vbYesNo) = vbYes
objRecordset.Update
Else
objRecordset.CancelUpdate
End If
|