DataMember - property of the AdoRecordset object
Returns or sets the name of the data member that will be retrieved from the object referenced by the DataSource property.
property specifies which object specified by the DataSource
property will be represented as byl the AdoRecordset
object. The AdoRecordset
object must be closed before this property is set. An error is generated if the DataMember
property is not set before the DataSource
property, or if the DataMember
name is not recognized by the object specified in the DataSource
Property access for read and write.
oRs.DataMember = "Command";
// Name of the rowset to bind to
oRs.DataSource = "MyDm";
// Name of the object containing an IRowset