Disconnect

concerns

The Disconnect event is triggered if the connection to the data source is closed.

The event can be used if Microsoft Data Objects is available as a type library.

 

Syntax

Disconnect(adStatus, pConnection)

Parameter

Name

Type

Passing

Description

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.

pConnection

ADODB.Connection

ByVal

An ADODB Connection object