The ExecuteComplete event is triggered if a command is executed.
The event can be used if Microsoft Data Objects is available as a type library.
Syntax | |||
ExecuteComplete(RecordsAffected, pError, adStatus, pCommand, pRecordset, pConnection) | |||
Parameter | |||
Name |
Type |
Passing |
Description |
RecordsAffected |
Long |
ByVal |
Number of records affected |
pError |
ADODB.Error |
ByVal |
An ADO error object that describes a possibly occuring error |
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 |