D.8. The Field Object

The Fields collection contains Field objects. Each object represents an individual field within an ADO Recordset.

D.8.1. Properties of the Field Object

The properties for the Field object are listed in the following table.

PropertyData TypeDescription
ActualSizeLongReturns the actual size of the value of the field
AttributesLongDescribes certain characteristics of the field
DataFormatObjectCan be used to format your data
DefinedSizeLongDescribes the defined size for the field
NameStringContains the name of the field
NumericScaleByteNumber of digits allowed to the right of the decimal point for a numeric field
OriginalValueVariantStores the original value for the field
PrecisionByteIndicates the precision for numeric data
StatusFieldStatusEnumDetermines whether the field has been successfully added to the collection
TypeByteLists the data type for the field
UnderlyingValueVariantLists the most recently retrieved value for the field
ValueVariantContains the field's current value

There are two methods available for the Field object. AppendChunk allows you to append data to a large string or binary field. GetChunk allows you to retrieve data from a large string or binary field.

Collections for the Field ObjectDescription
PropertiesContains all the property objects for the current command object

Get Access 2003 VBA Programmer's Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.