How do you reset auto number in a table query?

C

CAD Fiend

Hello,

I am testing a table structure, and want to delete all of the records,
which are primary keyed with auto number. If I just delete the records,
and create a new record, it picks up whatever the last record number
was. I remember once that I had to do a query to clear that index. BTW,
does it make any differnce if the primary key is indexed (duplicates
OK?)

TIA.

Phil.
 
A

Al Camp

Delete all the records in your table.
Compact the database.
Enter a new record... the AutoNumber should start again at 1.
 
P

PC Datasheet

Manual method ---

Open your table in design view, delete the primary key then type (or paste)
it back in. The PK will again start at 1.
 

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

Similar Threads


Top