DataSource Property (ADO)

Specifies an object containing data to be represented as a Recordset object.

Remarks

The DataMember and DataSource properties must be used in conjunction.

The object referenced must implement the IDataSource interface and must contain an IRowset interface.

This property is used to create data-bound controls in the Data Environment.

See the Control Writer section of the Data Access SDK for more information.

Usage

Dim rs as New ADODB.Recordset
rs.DataMember = "Command"      'Name of the rowset to bind to
Set rs.DataSource = myDE      'Name of the object containing an IRowset