Name
Connection.ExecuteComplete Event — (Versions 2.0, 2.1, 2.5, 2.6)
Synopsis
Private Sub con_ExecuteComplete(ByValRecordsAffectedAs Long, _ ByValpErrorAs ADODB.Error, _adStatusAs ADODB.EventStatusEnum, _ ByValpCommandAs ADODB.Command, _ ByValpRecordsetAs ADODB.Recordset, _ ByValpConnectionAs ADODB.Connection)
The ExecuteComplete event is called when the execution of a command has completed.
Arguments
-
RecordsAffected(Long) Indicates how many records are affected by the executed command.
-
pError(Error) Contains details about an error that occurred if the
adStatusparameter is set toadStatusErrorsOccurred.
-
adStatus(EventStatusEnum) Indicates the status of the current operation. If the
adStatusparameter is set toadStatusOK, the operation was successful. If theadStatusparameter is set toadStatusErrorsOccurred, the operation failed, and thepErrorobject contains the details regarding the error. If theadStatusparameter is set toadStatusUnwantedEvent, this event will not be called again.
-
pCommand Represents the Command object that was executed (if there was one).
-
pRecordset Represents the Recordset object that results from the commands execution. This Recordset object can be empty.
-
pConnection Represents the Connection object that fired this event.
See Also
Connection.Execute Method, Command.Execute Method, Recordset.NextRecordset Method, Recordset.Open Method, EventStatusEnum Enumeration
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access