ADO » Collections » FieldsVersion: 2.5The Fields Collection is a collection of all of the Field objects associated with a
specific Record object.The Fields Collection has a wider selection of methods than the various other collections in ADO.
For example, the Append method allows you to add Field objects to the collection and
the Update and CancelUpdate methods give you control over updates.
If you reference by name a Field object that does not exist,
a new Field object with that name will be appended automatically to the Fields Collection.
The Status property for this newly appended Field will be assigned a
FieldStatusEnum value of adFieldPendingInsert.
Further, if allowed by your provider, the Field will be created in the data source the next time
you call the Update method.
There are two special fields which can be referenced in a Record object by using the
FieldEnum constants.
FieldEnum Constants
Constant
Value
Description
adDefaultStream
-1
References the field containing the default stream
adRecordURL
-2
References the field containing the absolute URL
A Recordset object can also have a Fields Collection.
The Fields Collection has two properties and six methods.Properties
Methods
See Also: