Name

Recordset.DataMember Property — RDM Property(Versions 2.0, 2.1, 2.5, 2.6)

Recordset.DataSource Property — RDS Property(Versions 2.0, 2.1, 2.5, 2.6)

Synopsis

                     recordset.DataMember = datamember
                     recordset.DataSource = datasource
                  

The DataMember property indicates the object, within the data source specified by the Data Source property, that the Recordset object should be created with.

Datatype

String (DataMember property)
DataSource (DataSource property)

Description

The DataMember and DataSource properties are always used together.

The DataSource property indicates the data source in which the object specified by DataMember resides.

The DataMember property indicates which object within the data source should be used to create the Recordset object.

The Recordset must be closed when the DataMember property is being set. In addition, an error will be raised if the DataSource property is set before the DataMember property.

Get ADO: ActiveX Data Objects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.