Name

EventReasonEnum — (Versions 2.0, 2.1, 2.5, 2.6)

Synopsis

The EventReasonEnum enumeration indicates why a given event was fired.

Table E-19. The EventReasonEnum Enumeration

Enumeration (ADO/WFC)

Value

Description

adRsnAddNew (ADDNEW)

1

Indicates that a new record has been added by an operation.

adRsnClose (CLOSE)

9

Indicates that the Recordset object has been closed by an operation.

adRsnDelete (DELETE)

2

Indicates that a record has been deleted by an operation.

adRsnFirstChange (FIRSTCHANGE)

11

Indicates that the first change to a record has been made by an operation.

adRsnMove (MOVE)

10

Indicates that the record pointer has moved within the Recordset object by an operation.

adRsnMoveFirst (MOVEFIRST)

12

Indicates that the record pointer has been moved to the first record of the Recordset object by an operation.

adRsnMoveLast (MOVELAST)

15

Indicates that the record pointer has been moved to the last record of the Recordset object by an operation.

adRsnMoveNext (MOVENEXT)

13

Indicates that the record pointer has moved to the next record in the Recordset object by an operation.

adRsnMovePrevious (MOVEPREVIOUS)

14

Indicates that the record pointer has moved to the previous record in the Recordset object by an operation.

adRsnRequery (REQUERY)

7

Indicates that an operation has required the Recordset object.

adRsnResynch (RESYNCH)

8

Indicates that an operation has resynchronized the Recordset object.

adRsnUndoAddNew (UNDOADDNEW) ...

Get ADO: ActiveX Data Objects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.