Henry said:
This is part of an automated sw-release update. Before the new front-end
starts lots of changes are aplied to the backend.
There is no way to do what you want using VBA code and be simpler.
Yes, when you are in table design view it's very easy and swift. But
not with code.
That said you can indeed insert a field so it's index is 0. The
property is "OrdinalPosition".
Note however that you may get the dreaded -1517 error message when the
user compacts the database and goes into the front end. Relinking
the tables in the FE solves this problem
http://www.granite.ab.ca/access/reservederror1517.htm
BTW I use the Compare'Em utility to compare BE MDBs and create the
necessary VBA code.
http://home.gci.net/~mike-noel/CompareEM-LITE/CompareEM.htm
Although it won't create the code you need to remove and add the
autonumber field.
Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog -
http://msmvps.com/blogs/access/