DataSource Property (ADO)

Microsoft ActiveX Data Objects (ADO)

ADO 2.5 API Reference

DataSource Property

Indicates an object that contains data to be represented as a Recordset object.

Remarks

This property is used to create data-bound controls with the Data Environment. The Data Environment maintains collections of data (data sources) containing named objects (data members) that will be represented as a Recordset object.

The DataMember and DataSource properties must be used in conjunction.

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

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

See Also

DataMember Property

Applies To: Recordset Object

© 1998-2003 Microsoft Corporation. All rights reserved.