See:
Fixing AutoNumbers when Access assigns negatives or duplicates
at:
http://allenbrowne.com/ser-40.html
The article explains what triggers this bug, and the code resets the
AutoNumber for any tables that currently have the Seed too low.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users -
http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Tyler" <ty***********@gmail.comwrote in message
news:5e**********************************@t54g2000 hsg.googlegroups.com...
>I have a table where some of the entries have been deleted so the
primary key field which is set as an autonumber field is not
contiguous. When I try to ad a new record it starts numbering lower
than my highest number.
For example:
1
2
5
7
when I add a new record it tries to make the autonumber 5 then errors
out. I am sure this is an easy solution but I am racking my brain!
Thanks in advance.