Two ADO objects can raise events: the Connection object and the Recordset object. The ConnectionEvent family pertains to operations on the Connection object, and the RecordsetEvent family pertains to operations on the Recordset object.
The following tables summarize the events and their descriptions.
ConnectionEvent | Description |
---|---|
BeginTransComplete, CommitTransComplete, RollbackTransComplete |
Transaction ManagementNotification that the current transaction on the connection has started, committed, or rolled back. |
WillConnect, ConnectComplete, Disconnect | Connection ManagementNotification that the current connection will start, has started, or has ended. |
WillExecute, ExecuteComplete | Command Execution ManagementNotification that the execution of the current command on the connection will start or has ended. |
InfoMessage | InformationalNotification that there is additional information about the current operation. |
RecordsetEvent | Description |
---|---|
FetchProgress, FetchComplete | Retrieval StatusNotification of the progress of a data retrieval operation, or that the retrieval operation has completed. These events are only available if the Recordset was opened using a client-side cursor. |
WillChangeField, FieldChangeComplete | Field Change ManagementNotification that the value of the current field will change, or has changed. |
WillMove, MoveComplete, EndOfRecordset | Navigation ManagementNotification that the current row position in a Recordset will change, has changed, or has reached the end of the Recordset. |
WillChangeRecord, RecordChangeComplete | Row Change ManagementNotification that something in the current row of the Recordset will change, or has changed. |
WillChangeRecordset, RecordsetChangeComplete | Recordset Change ManagementNotification that something in the current Recordset will change, or has changed. |
ADO Event Instantiation by Language | ADO Events | Event Parameters | How Event Handlers Work Together | Types of Events