I have a code that tries to set the format to "standard" and decimal places to 0 for each field in my tables. howerve i can only seem to get the format to work not the decimalplaces...wrote a previous thread about this. Now i am wondering if the following could be the cause of the problem found it in the help file!
DataUpdatable Property
Returns a value that indicates whether the data in the field represented by a Field object is updatable.
Return Values
The return value is a Boolean data type that returns True if the data in the field is updatable.
Remarks
Use this property to determine whether you can change the Value property setting of a Field object. This property is always False on a Field object whose Attributes property is dbAutoIncrField.
You can use the DataUpdatable property on Field objects that are appended to the Fields collection of QueryDef, Recordset, and Relation objects, but not the Fields collection of Index or TableDef objects.
The decimalplaces field is set to Auto when i import the file from excel
Thanks for any help
DataUpdatable Property
Returns a value that indicates whether the data in the field represented by a Field object is updatable.
Return Values
The return value is a Boolean data type that returns True if the data in the field is updatable.
Remarks
Use this property to determine whether you can change the Value property setting of a Field object. This property is always False on a Field object whose Attributes property is dbAutoIncrField.
You can use the DataUpdatable property on Field objects that are appended to the Fields collection of QueryDef, Recordset, and Relation objects, but not the Fields collection of Index or TableDef objects.
The decimalplaces field is set to Auto when i import the file from excel
Thanks for any help