ADODB Object
 
Syntax
 
string = fieldobject.Name
fieldobject.Name = string
 
Description
Sets or returns a string value that is the name of the Field object.
 
The Name property returns a string that is the name of a Field object. For example, you can use this property when adding a Field object to a Fields Collection or to a Recordset object. This property has read/write permission when being used to create recordsets, but converts to read-only when you open an already created recordset.
 
The name can be obtained from the Fields Collection (see example) and the Properties Collection.
 
The Name property is also used by the Command, Parameter, and Property objects.
See Also
Command.Name, Value, Parameter.Name, Property.Name.
Example
 
For Each objField In objRecord.Fields
   Debug.Print objField.Name
Next