DataSource Property (ActiveX Controls)
Returns or sets a data source through which a data consumer is bound to a database.
The DataSource property syntax has these parts:
|object||An object expression that evaluates to an object in the Applies To list.|
|datasource||An object reference that qualifies as a data source, including ADO Recordset objects, and classes or user controls defined as data sources (DataSourceBehavior property = vbDataSource).|
Use the Set statement to set the DataSource property, as shown below:
Set DataGrid1.DataSource = ADODC1
Applies To: MSChart Control