Hi Rebecca,
According to some sources, this can be caused by index corruption, so it may
not have been somthing you did!
Before you do anything else, have a look at this and see if anything helps:
http://www.google.com/search?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=fix+duplicate+autonumber+access
If you like, you could try this, I would suggest you read it through and
understand what I am suggesting before you start, in case I have made an
incorrect assumption, or a typo, or worse...
MAKE A COPY OF THE DATABASE. In case we make it worse...
MAKE ANOTHER COPY OF THE DATABASE. In case we make it worse...
In the following, I will assume that your AutoNumber field is called
'RecordId'
In design mode rename the autoNumber field to _RecordId
Create 2 new Fields:
one called OldRecId and one with the same name as your original AutoNumber
field (RecordId)
Run an update query to copy the values from your existing AutoNumber field
(the one that we just renamed to _RecordId) into the OldRecId field. This
makes a copy of the existing numbers.
Make the new Field we created (RecordId) an AutoNumber
When you save the table, you should then have a table thus:
_RecordID - Your original, messed up, autonumber
OldRecordId - A copy of the numbers in the above
RecordId - A shiny new AutoNumber field (with new hopefully non-repeating
autoNumbers in it)
You are now going to have to update any other tables that reference the
original AutoNumber field as the new AutoNumber will contain different
values. This should not be too difficult as you have both the old and the
new values in your table now.
You still have the problem of the records that had duplicated AutoNumbers in
them. You may have to deal with these by hand...?
Hope that this helps a little.
Cheers,
ChrisM