G
Gibson
I'm using the following code in an attempt to increase the field size of
Field1 in backend table flkpTable from 30 to 32. The field data type is Text.
The code runs through without an error but does not change the size of the
field. When I check the field size it remains at 30. I obviously missed
something. Help!
Set wrkDefault = DBEngine.Workspaces(0)
Set dbsUpdate = wrkDefault.OpenDatabase(DatabasePath, True)
Set tdfUpdate = dbsUpdate.TableDefs("flkpTable")
With tdfUpdate
Set tdfField = .Fields("Field1")
tdfField.Properties.Append tdfField.CreateProperty("Field Size", dbText, 32)
End With
Set wrkDefault = Nothing
db.Close
Set db = Nothing
Field1 in backend table flkpTable from 30 to 32. The field data type is Text.
The code runs through without an error but does not change the size of the
field. When I check the field size it remains at 30. I obviously missed
something. Help!
Set wrkDefault = DBEngine.Workspaces(0)
Set dbsUpdate = wrkDefault.OpenDatabase(DatabasePath, True)
Set tdfUpdate = dbsUpdate.TableDefs("flkpTable")
With tdfUpdate
Set tdfField = .Fields("Field1")
tdfField.Properties.Append tdfField.CreateProperty("Field Size", dbText, 32)
End With
Set wrkDefault = Nothing
db.Close
Set db = Nothing