Name

Connection.ConnectComplete Event — (Versions 2.0, 2.1, 2.5, 2.6)

Synopsis

Private Sub ConnectComplete(ByVal pError As ADODB.Error, _
                            adStatus As ADODB.EventStatusEnum, _
                            ByVal pConnection As ADODB.Connection)

The ConnectComplete event is raised once a connection has been made.

Arguments

pError

An Error object containing details about an error that occurred if the adStatus parameter is set to adStatusErrorsOccurred.

adStatus

An EventStatusEnum value indicating the status of the current operation. If the adStatus parameter is set to adStatusOK, the operation was successful. If the adStatus parameter is set to adStatusErrorsOccurred, the operation failed, and the pError object contains the details regarding the error. If the adStatus parameter is set to adStatusUnwantedEvent, this event will not be called again.

pConnection

The Connection object that fired this event.

See Also

Connection.Disconnect Event, Connection.WillConnect Event, ConnectOptionEnum Enumeration, EventStatusEnum Enumeration

Get ADO: ActiveX Data Objects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.