DataFields Property

       

Returns an array of DataField names of the DataSource.

Syntax

object.DataFields(index)

The DataFields property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
index The index of an element in the array. The array is 0-based.

Return Type

String

Remarks

The DataFields array contains the names of all bindable properties of the repeated control (see RepeatedControlName).

Use the Ubound method to determine how many elements are in the array. Since the array is 0-based, use the following code:

Debug.Print Ubound(DataRepeater1.DataFields) + 1