Results 1 to 6 of 6
  1. #1
    DBinazeski is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2010
    Posts
    7

    Restoring a lost field with a Unique Identifier

    In Access 2007 we have set up a database with approx. 2100 items, each with a unique identifier "ID Number" starting with 1. A select few records have been deleted.



    Example: For whatever reason, whether accidentily or purposely deleted ID Number 206 does not show up at all, it's record has been removed. The fields skip from 205 to 207.

    I understand that the fact that the unique iodentifiers are, in this case, numerals, not numbers. They count nothing, just show which record I am accessing. BUT I want 206 back.

    Is there anything can be done to restore 206?? (Regardless of whether or not it comes back with the information previously populating the fields within the record). What's important to me is restoring a record identified by the # 206.

  2. #2
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    you can add a new record with id=206:
    insert into table1 (id) values (206)

  3. #3
    DBinazeski is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2010
    Posts
    7
    My problem is:
    In the table, the column label "ID Number" can not be editted. Even in the row which is left available at the bottom of the table for new records. The only way, that I know of, to populate the ID Number field is to enter a value into any other field.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Weekend was suggesting using SQL to APPEND the record with the ID of 206. http://allenbrowne.com/ser-26.html

  5. #5
    DBinazeski is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2010
    Posts
    7

    Thumbs up

    Thank you. Got it figured out!

  6. #6
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    you can even insert a duplicate autonumber ID if you don't set a unique index on it.

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

Similar Threads

  1. lost - linking date field based on a record with smaller Unique ID
    By stan.chernov@gmail.com in forum Queries
    Replies: 7
    Last Post: 09-16-2010, 02:22 PM
  2. generate next possible identifier
    By BayerMeister in forum Programming
    Replies: 5
    Last Post: 08-25-2010, 08:30 AM
  3. Pound signs restoring tables
    By Djacsnp in forum Access
    Replies: 2
    Last Post: 04-20-2010, 05:42 AM
  4. Drive type identifier
    By dcrake in forum Sample Databases
    Replies: 0
    Last Post: 08-19-2009, 04:15 AM
  5. Unique Record Identifier for MS SQL Server Tables
    By MGSP in forum Import/Export Data
    Replies: 2
    Last Post: 01-29-2006, 03:00 PM

Tags for this Thread

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