I have a table with an autonumber primary key column. When I add a row to
the table, Access is generating a number which is already in use. This makes
my application blow up. Thankfully, the table's uniqueness constraint holds
(i.e. I get an error when I try to save the row), but my entire application
is built on the premise that autonumber values will be unique, and all hell
breaks loose when that premise is violated.
I am using Access 2000, SP3. The problem persists if I compact and repair
the database. I corrected the problem once by rebuilding the primary key
column (i.e. create a new column, delete the old one), but the problem has
reoccurred. I have posted a copy of the database, stripped of all but the
relevant table, at http://MatsonConsulting.com/download...number_bug.zip.
I can recreate the problem at any time (and hopefully you can too) by adding
a row to that table.
To me, this looks a lot like the notorious autonumber reset bug
(http://support.microsoft.com/?id=257408), but I should not be experiencing
that bug with SP3. If anyone has any other ideas, I would be glad to hear
them.
-Todd Matson