Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2009
    Posts
    4

    Is there a way to specify a value when using an auto-increment field

    I need to add items from one table to another preserving each records id which is an auto-incrementing field. However, access won't let me modify the id field for a record. I can change the table to make the field a normal number field so I can import the records. However, I can't make the field auto-increment again if there's any records in the table. I need to modify an auto-incrementing field, is this possible?

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    yes; via an Append Query or Insert Query

    you are in a non-normalized scenario and should not have to be doing what you describe...but I won't scold you on that point....

    first create a Select Query to collect/isolate those records from table 1 that must be put into table 2...then create an Append Query using the Select Query as its record source to append the records into table 2...

    autonumber fields often have the property of No Duplicates...if there are any duplicates it will not work...it will throw an error....

  3. #3
    Join Date
    Dec 2009
    Posts
    4

    Reply

    I'm going to try it with a sample database first. However, I tried doing this with the original and it acted like the password on the database was incorrect. I couldn't wipe it because it was being copied to an access 97 database. However, I did find a copy of access 97 so I can nuke the password and try it that way. Thank you for that tip it might have really helped!

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

Similar Threads

  1. Auto fill a field from multiple lookup
    By shahemaan in forum Forms
    Replies: 4
    Last Post: 06-13-2014, 04:00 PM
  2. Auto Populated Field not Saving to Table
    By EstesExpress in forum Forms
    Replies: 4
    Last Post: 10-09-2009, 03:33 AM
  3. Replies: 3
    Last Post: 10-05-2009, 07:22 AM
  4. Replies: 1
    Last Post: 03-08-2009, 01:50 PM
  5. Auto-increment for non-100% numerical fields
    By supernoob in forum Access
    Replies: 0
    Last Post: 05-03-2007, 09:44 PM

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