Results 1 to 3 of 3
  1. #1
    Plomo is offline Novice
    Windows Vista Access 2007
    Join Date
    Aug 2009
    Posts
    1

    How to add ID 1 above table that starts with ID 2 ?

    Hey so my question is my title, how can I add a ID number of 1 above an existing table that alrdy exists and uses the ID of 2 to start?

    Example:

    ID:2 Name:Mich


    ID:3 Name:Jim

    What I want is to add a Number 1 above that Number 2 withought affecting the table.

    Eaxmple:
    ID:1 Name:John
    ID:2 Name:Mich
    ID:3 Name:Jim

    I can always change the field or what not on ID but I cant change its order is there a way for this or should i just make a new table?

    Sorry I never use access, so far so good though just learning stuff on the way.

    Any help would be greatly appresiated thanks!

  2. #2
    Ryan is offline Novice
    Windows Vista Access 2003
    Join Date
    Aug 2009
    Location
    Lafayette LA 70592
    Posts
    26

    Wrong Autonumber

    If you want to make an autonumber field start at 1, you have 2 options:

    1. Delete all data in the table, then compact database.

    2. Delete column, then add it back in again. This way does not lose data. Unfortunately, you cannot guarentee what order the numbers will be assigned to existing records, Though maybe if you Sort them by the name you want?

    In Addition, you have to remove all Relationships to the Field that gives the autonumber, and reassign them after.

    You may want to have a close look at the relationships, so you can put them back.

    Note: I noticed he said he cant effect the table, but as for as my book goes, it dont look like you can without alterting it.
    Last edited by Ryan; 09-03-2009 at 01:38 PM. Reason: Note:

  3. #3
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    What I want is to add a Number 1 above that Number 2 withought affecting the table.
    ...you can't change the table?

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

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