Hi I'm trying to append a NEW FIELD on an existing table.
My table has 2 fields and I want to append a 3rd one.
With the code below my field DOES NOT get added to my table.
Dim fld As DAO.Field
Dim tbl As DAO.TableDef
Set tbl = CurrentDb.CreateTableDef("Table1"
Set fld = tbl.CreateField("FieldName", dbText, 30)
tbl.Fields.Append fld
... and what next ???
(CurrentDb.TableDefs.Append tbl does not work)
... how do i get my field REALLY appended to my table ?
... is it an update issue ?
(Refresh does not change anything though)
thanks a lot!
marco
[message to CClint : first congrats for the TipMaster price. Then, you sent me to a thread about this pb 2 weeks ago but ... i couldn't find the answer in it, could you write me what your idea was?]
My table has 2 fields and I want to append a 3rd one.
With the code below my field DOES NOT get added to my table.
Dim fld As DAO.Field
Dim tbl As DAO.TableDef
Set tbl = CurrentDb.CreateTableDef("Table1"
Set fld = tbl.CreateField("FieldName", dbText, 30)
tbl.Fields.Append fld
... and what next ???
(CurrentDb.TableDefs.Append tbl does not work)
... how do i get my field REALLY appended to my table ?
... is it an update issue ?
(Refresh does not change anything though)
thanks a lot!
marco
[message to CClint : first congrats for the TipMaster price. Then, you sent me to a thread about this pb 2 weeks ago but ... i couldn't find the answer in it, could you write me what your idea was?]