6 replies
by dklippert
by khall3
Ok the first thing you will need to do is to look at your table in design view. Obviously you only have two field the Autonumber field and the text field. In the Autonumber field I am assuming you have the data type set as "AutoNumber" and the text field set as text. In the field properties you need to make sure your field size is set to "Integer" or Long Integer". Also the New Values property must be set to "Increment" not "Random"
Also you might want to open you table and view the fiverecords you have. Then choose format, unhide columns. You might have accidently hide some columns.
Hope this helps
Sorry, that's not it either. After some more checking, I've discovered that this is happening in several tables in this database (only one database out of several shows has this problem, I am not able to replicate the problem in any other database). The only way I am able to get the autonumber counter to work correctly is to delete the relationships (enforced) then delete all data in the table, then compact. It seems as if Access is not reseting the autonumber counter during the compact operation unless the table has no data.
I've been working with Access since version 2.0 and have never seen an autonumber behave this way. This database is secured with user level security, but I am logged in with administrative rights when I compact.
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending