How to reset the autoincrement.

Posted on 2006-05-24
Medium Priority
Last Modified: 2008-03-10
I had a master table with all the states data now each state has it own table. I would like to start the autoincrement on each table at 1 and continiue to the end.

Is there a way to do this?


Question by:rcleon

Accepted Solution

dds110 earned 1400 total points
ID: 16754729

First - Delete the autonumber field
Second - Copy the table to a new table
Third - Delete the original table
Fourth - Add the new autonumber field

If that doesn't work

Copy and paste the table  >> select structure only
write a query to update the new table with the records from the old table WITHOUT the autonumber field

LVL 44

Assisted Solution

Arthur_Wood earned 600 total points
ID: 16754757
when you create a table, and then create an autonumber field in that table, the autonumber field automatically starts at 0 for each table.  Autonumber fields are NOT global to the entire Database.

Does that answer your question?


Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question