Results 1 to 2 of 2
  1. #1
    edieb is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jul 2013
    Posts
    5

    Post Access Auto Numbering

    I split a database that was too large in August and archive the excess records. The team continue to do data entry from that time until yesterday. Access went from record number 202034 (last high number record) down to number 76305 (there were 355 records down loaded to create records within the 70000 numbering. Those record numbers are in the archive database. Now Access is not letting new records in because it will cause duplicates. As far as I know the archive database in not linked to the current one. Help this problems stops activity.

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    I don't know where you currently stand with referential integrity. Maybe records have been added after going live.

    It may not seem like help but I will try to explain something that might have helped before the "Archive" event. Lrt's take a walk back in time, before this event.

    preserve your AutoNumber in a new table.......

    If you delete all records in a table with autonumber and then compact and repair your DB, the autonumber will reset to 0.

    Let's say the auto number was at 200 before the compact and repair. And you want your autonumber to start at 200 again. Starting with an empty table, much like an imported table without data.........

    Identify that record with PK 200 in your "backup" table just so you remember 200 and locate the copy of your original table. You will want to verify 200 later on in the process.

    Build an Access query based on your backup table that contains record #200. Move each field into the query by dblclick, starting with the AutoNumber field. Turn this query into an append query. Tell the wizard to Append your empty table that has an autonumber of 0.

    Go to the table that just got appended to. Delete ALL of the records and THEN populate the table with the data you want using another Append query (minus the AutoNumber this time.)

    Typed this all from memory so backup and then backup again before you start.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Total Noobie here... question about auto numbering
    By JavaBeans in forum Database Design
    Replies: 10
    Last Post: 04-25-2012, 04:58 PM
  2. Trouble recovering database : Auto numbering
    By ArseniusCamillus in forum Access
    Replies: 4
    Last Post: 02-14-2012, 04:56 AM
  3. how to get auto numbering on continuous form records
    By shubhamgandhi in forum Programming
    Replies: 1
    Last Post: 08-04-2011, 02:26 PM
  4. Auto numbering of forms
    By bgeorge12 in forum Forms
    Replies: 5
    Last Post: 06-30-2011, 05:05 PM
  5. Auto Numbering
    By rkruczk in forum Forms
    Replies: 0
    Last Post: 10-09-2006, 04:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums