How to reset the autoincrement.

Posted on 2006-05-24
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
    LVL 8

    Accepted Solution


    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

    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

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
    Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    745 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

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now