<< Click to Display Table of Contents >>

Navigation:  Ado Events > AdoConnectionEvents Class >


Previous pageReturn to chapter overviewNext page


The ConnectComplete event is called after a connection starts



METHOD ConnectComplete ( oError , lStatus , oConn  )  CLASS AdoConnectionEvents



oError        An Error object. It describes the error that occurred if the value of lStatus is adStatusErrorsOccurred; otherwise it is not set

lStatus        An AdoEventStatusEnum status value. When ConnectComplete is called, this parameter is set to adStatusCancel if a WillConnect event has requested cancellation of the pending connection

oConn        The Connection object for which this event notification applies.




Before the event returns, set this parameter to adStatusUnwantedEvent to prevent subsequent notifications. However, closing and reopening the Connection causes the event to occur again.


See Also

AdoConnectionEvents, AdoEventStatusEnum, AdoConnection:Open(), AdoError