How do you reset auto number in a table query?

  • Thread starter Thread starter CAD Fiend
  • Start date Start date
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.
 
Delete all the records in your table.
Compact the database.
Enter a new record... the AutoNumber should start again at 1.
 
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

numbering rows in a table 6
import data from excel 2003 to a table in an existing database 2
Find Duplicates 1
Auto Number 9
Sequential Number 2
auto numbering 4
query issue 5
Reset Auto number 4

Back
Top