"Andrew" <(E-Mail Removed)> wrote in message
news:71E94C35-7030-4EAB-AC5B-(E-Mail Removed)...
> Hi,
>
> I'm using the folowing method to insert a column. It inserts 'Col_D'
> after
> the very last column ('Col_F'). How do I get it to insert it after the
> third
> existing column. The name of the column is 'Col_D' and the table goes up
> to
> 'Col_F'.
>
> Set tdfNew = myDB.TableDefs("Test")
> tdfNew.Fields.Append tdfNew.CreateField("Col_D", dbText)
After creating and appending the field, try:
tdfNew.Fields("Col_D").OrdinalPosition = 3
tdfNew.Fields("Col_E").OrdinalPosition = 4
tdfNew.Fields("Col_F").OrdinalPosition = 5
--
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)