Specifies the field for binding the object to a Recordset object.
Syntax
object.setDataField(field)
Parameters
object
A script object.
field
Specifies the field that binds the object to a Recordset object. You can use the name or the index of a field.
Remarks
The field parameter is a variant expression that evaluates to the name or the index of a field that is made available by the Recordset object's getRecordSource method.
Bound objects provide access to specific data in your database. Bound objects that manage a single field display the value of a specific field from the current record. The getDataSource and setDataSource methods are used to bind the object to a RecordSet object.
If field is not valid for the current Recordset object, the setDataField method will produce errors.