I have a table with an an autonumber as the ID in a local database. Recently when I tried to enter new data by manually opening it, I discovered that the autonumber isn’t working as expected – instead of a new number after the existing highest value, the new record had an ID which was already given to an existing record, resulting in my new record not accepted by Access. I tried to solve the problem by using Access’s Compact and repair database but without success. After compacting and repairing, the new record that I tried to enter has a different autonumber ID but which was still used by another existing record.
Does it mean that my table is corrupted? How should I do so that the autonumber is working correctly again?
How can I detect such problem (collision of autonumber) using codes?