The ConnectComplete event is called after a connection starts. The Disconnect event is called after a connection ends.
ConnectComplete pError, adStatus, pConnection Disconnect adStatus, pConnection
When ConnectComplete is called, this parameter is set to adStatusCancel if a WillConnect event has requested cancellation of the pending connection.
Before either event returns, set this parameter to adStatusUnwantedEvent to prevent subsequent notifications. However, closing and reopening the Connection causes these events to occur again.
Applies To: Connection Object