DataMember - property of the AdoRecordset object
Description:
The property returns or sets the name of the data member that will be retrieved from the object referenced by the
DataSource property.
The
DataMember 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.
Syntax:
String DataMember
Note:
Property access for read and write.
Example:
JavaScriptVBScriptSelect and copy to clipboard
oRs.DataMember = "Command";
// Name of the rowset to bind to
oRs.DataSource = "MyDm";
// Name of the object containing an IRowset
oRs.DataMember = "Command"
' Name of the rowset to bind to
oRs.DataSource = "MyDm"
' Name of the object containing an IRowset