Syntax
| long = fieldobject.Attributes
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description
| Returns a long value that is the sum of one or more FieldAttributeEnum valuesthat define the characteristics of a Field object.
The Attributes property returns a long value that is the sum of one or more FieldAttributeEnum constants that indicate the characteristics of a Field object. The default is zero.
The Attributes property has read/write permission when being used to create recordsets, but converts to read-only when you open an already created recordset.
Not all providers support this property.
FieldAttributeEnum Constants
Note: This code only works if one attribute is set, otherwise it always returns false.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
See Also
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example
| If (objField.attributes = adFldUnknownUpdatable) Then
Debug.Print "Provider cannot determine if you can write to the field"
End If
|