The WillExecute event is triggered if a command is executed against the data source.
The event can be used if Microsoft Data Objects is available as a type library.
Syntax | |||
WillExecute(Source, CursorType, LockType, Options, adStatus, pCommand, pRecordset, pConnection) | |||
Parameter | |||
Name |
Type |
Passing |
Description |
Source |
String |
ByRef |
Command |
CursorType |
CursorTypeEnum |
ByRef |
Used CursorType |
LockType |
LockTypeEnum |
ByRef |
Used LockType |
Options |
Long |
ByRef |
Execution options |
adStatus |
EventStatusEnum |
ByRef |
An EventStatusEnum Enumeration Contains adStatusOK if the command execution for this event was successful. If an error occurs, the variable contains adStatusErrorOccurred. To avoid further events for this command, the value can be set to adStatusUnwantedEvent. |
pCommand |
ADODB.Command |
ByVal |
An ADODB Command object |
pRecordset |
ADODB.Recordset |
ByVal |
An ADODB Recordset object |
pConnection |
ADODB.Connection |
ByVal |
An ADODB Connection object |