How to reset database auto number

T

TES

I built my database, and tested it as I went by filling in dummy entries.
Now that I am ready to start using it I can’t find a way to reset the auto
number primary key. Is there a way to do this? Thanks.
 
J

Jeff Boyce

Yes, and don't!

Access Autonumbers are designed to provide unique row identifiers. As such,
they are generally unfit for human consumption.

If you'll describe WHY you think you need to reset the autonumbers, folks
here may be able to offer approaches.

If your situation turns out to be one of those (rare) times when Autonumbers
should be reset, folks here will be able to help with that, too.

Regards

Jeff Boyce
Microsoft Office/Access MVP
 
R

Rpettis31

Other than cosmetic reasons I am not sure why you would want to do this
unless you want to just start fresh. I have deleted the table and recreated
it which resets the number.
 
J

John W. Vinson

I built my database, and tested it as I went by filling in dummy entries.
Now that I am ready to start using it I can’t find a way to reset the auto
number primary key. Is there a way to do this? Thanks.

As Jeff says, it's generally pointless to do so. 3122 makes just as good a
meaningless unique identifier as 1 does; and Autonumbers will ALWAYS have gaps
anyway, so you can't and shouldn't expect them to be neat and continuous.

That said... empty the table (delete all records) and Compact the database.
This works for most if not all versions of Access.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top