EventReasonEnum

Applies to: Access 2013, Office 2013

Specifies the reason that caused an event to occur.

Constant

Value

Description

adRsnAddNew

1

An operation added a new record.

adRsnClose

9

An operation closed the Recordset.

adRsnDelete

2

An operation deleted a record.

adRsnFirstChange

11

An operation made the first change to a record.

adRsnMove

10

An operation moved the record pointer within the Recordset.

adRsnMoveFirst

12

An operation moved the record pointer to the first record in the Recordset.

adRsnMoveLast

15

An operation moved the record pointer to the last record in the Recordset.

adRsnMoveNext

13

An operation moved the record pointer to the next record in the Recordset.

adRsnMovePrevious

14

An operation moved the record pointer to the previous record in the Recordset.

adRsnRequery

7

An operation requeried the Recordset.

adRsnResynch

8

An operation resynchronized the Recordset with the database.

adRsnUndoAddNew

5

An operation reversed the addition of a new record.

adRsnUndoDelete

6

An operation reversed the deletion of a record.

adRsnUndoUpdate

4

An operation reversed the update of a record.

adRsnUpdate

3

An operation updated an existing record.

ADO/WFC equivalent

Package: com.ms.wfc.data

Constant

AdoEnums.EventReason.ADDNEW

AdoEnums.EventReason.CLOSE

AdoEnums.EventReason.DELETE

AdoEnums.EventReason.FIRSTCHANGE

AdoEnums.EventReason.MOVE

AdoEnums.EventReason.MOVEFIRST

AdoEnums.EventReason.MOVELAST

AdoEnums.EventReason.MOVENEXT

AdoEnums.EventReason.MOVEPREVIOUS

AdoEnums.EventReason.REQUERY

AdoEnums.EventReason.RESYNCH

AdoEnums.EventReason.UNDOADDNEW

AdoEnums.EventReason.UNDODELETE

AdoEnums.EventReason.UNDOUPDATE

AdoEnums.EventReason.UPDATE