There are two basic types of events. "Will Events," which are called before an operation starts, usually include "Will" in their namesfor example, WillChangeRecordset or WillConnect. Events that are called after an event has been completed usually include "Complete" in their namesfor example, RecordChangeComplete or ConnectComplete. Exceptions existsuch as InfoMessagebut these occur after the associated operation has completed.
Event handlers called before the operation starts offer you the opportunity to examine or modify the operation parameters, and then either cancel the operation or allow it to complete. These event-handler routines usually have names of the form WillEvent.
Event handlers called after an operation completes can notify your application that an operation has concluded. Such an event handler is also notified when a Will event handler cancels a pending operation. These event-handler routines usually have names of the form EventComplete.
Will and Complete events are typically used in pairs.
The other event handlersthat is, events whose names are not of the form WillEvent or EventCompleteare called only after an operation completes. These events are Disconnect, EndOfRecordset, and InfoMessage.
ADO Event Handler Summary | ADO Event Instantiation by Language | Event Parameters | How Event Handlers Work Together