The getDataSource and setDataSource methods of the Recordset class retrieve or specify an object containing data to be represented as a Recordset object, respectively.
public IUnknown getDataSource();
public void setDataSource(IUnknown dataSource);
Returns an object containing data to be represented as a Recordset object.
dataSource | The data source containing the data object. |
Use getDataSource 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 getDataMember and getDataSource methods must be used in conjunction with each other.
The object referenced must implement the IDataSource interface.