Name

This property returns the name of a field.

This property is read-only.

Syntax

var =field.Name

Return Values

Returns a String value that specifies a name.

Remarks

Field names cannot be longer than 64 characters.

Example

The following code example displays the names of all fields in the table MyTable.

Dim rs, n
Set rs = CreateObject ("adoce.recordset")
rs.Open "myTable"
For n = 0 to rs.Fields.Count -1
MsgBox rs.Fields(n).Name
Next