Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 297383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:38:05+00:00 2026-05-12T06:38:05+00:00

A client of mine accidentally deleted about 500 records from an access table that

  • 0

A client of mine accidentally deleted about 500 records from an access table that has a primary ID field which was created as “autonumber”. By turning off the autonumber column (changing back to a integer), I was able to restore the missing 500 records from a backup, but now of course the autonumber cannot be turned back on…

What are some possible solutions? The ID field is used as a link to other tables, so I can’t just renumber everything without also renumbering all of the tables that reference this number (a pain in the neck, but possible).

Is there any “trick” to turning autonumber back on, using the max(id) as the starting point if data already exists in the table?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T06:38:05+00:00Added an answer on May 12, 2026 at 6:38 am

    Make newTable with ID field as AutoNumber (all fields must be same as in original table – except ID). Copy all data from originalTable to newTable:

    INSERT INTO newTable SELECT * FROM originalTable
    

    Once data is filled, delete originalTable and rename newTable to originalTable.

    This way all “holes” in auto-numbering are preserved and newTable has Auto-Numbering turned on.

    P.S. Always try to add foreign keys to your IDs. In that case, even if some data is deleted, you will at least have consistent state.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A new client of mine has a small VB/Access database application written in 2002
I have a SQL Server 2005 instance running and a client of mine deleted
I have a weird situation. A client of mine has a website having this
I have a web application that I am hosting, and a client of mine
A client of mine that is going to be selling photographs where customers can
A client of mine has asked for a 3rd party form to be integrated
A client of mine has an application written in Classic ASP and COM+. The
A client of mine has a site in wordpress, with one section being a
A client of mine just informed me that, while using the app I am
A client of mine has built Qt against VS2005. They are now wanting to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.