Occurs when a data source connects to an OLE DB Simple Provider.
Syntax
Private Sub object_DataConnection(ConnectionString As String)
The DataConnection event has these parts:
| Part | Description |
| object | An object expression that evaluates to an item in the Applies To list. |
| ConnectionString | A string specifying a connection to an OLE DB Simple Provider. |
Remarks
The DataConnection event is only available when the DataSourceBehavior property of a class is set to vbOLEDBProvider in an ActiveX DLL project.