I am using the following code to add a field to a backend table. The field is created fine but the Decimal Places property comes up "Auto" instead of 2 as I am trying to specify. Can anyone give me a hand?
Thanks
Set tdfUpdate = dbsUpdate.TableDefs("tbl2")
With tdfUpdate
Set tdfField = .CreateField("Field1", dbSingle)
.Fields.Append tdfField
tdfField.Properties.Append
tdfF ield.CreateProperty("Caption", dbText,"Field1")
tdfField.Properties.Append
tdfField.CreateProperty("Description", dbText, "This field is Field1")
tdfField.Properties.Append
tdfField.CreateProperty("Format", dbText, "Fixed")
tdfField.Properties.Append
tdfField.CreateProperty("Decimal Places", dbInteger, 2)
End With
Thanks
Set tdfUpdate = dbsUpdate.TableDefs("tbl2")
With tdfUpdate
Set tdfField = .CreateField("Field1", dbSingle)
.Fields.Append tdfField
tdfField.Properties.Append
tdfF ield.CreateProperty("Caption", dbText,"Field1")
tdfField.Properties.Append
tdfField.CreateProperty("Description", dbText, "This field is Field1")
tdfField.Properties.Append
tdfField.CreateProperty("Format", dbText, "Fixed")
tdfField.Properties.Append
tdfField.CreateProperty("Decimal Places", dbInteger, 2)
End With