Results 1 to 3 of 3
  1. #1
    sevanty7 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2013
    Posts
    37

    Question Copy and Pasting Values from One Form to the Next

    Good Morning!

    I currently have two forms both usedfor adding new records into two different tables.
    The problem I am having was first that I could not simply bring the value in the ID field over from one form to the next.
    Now all I would like to be able to do is copy the value in the first ID and Paste in the second ID field on the second form.
    I am currently getting an error possibly because the ID field on the first form in the Primary key for the table that form is linked to, on the second form however ID field is not the Primary key, I also can't make it the primary key because their are duplicate records that I cannot delete.


    So... is it possible to get around this somehow to be able to copy and paste from one form to another?

    Thanks for any help!

  2. #2
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742

    Try to Allow Dups in FK Index

    As i understand your issue -
    1) Form 1 has a table/query behind it with a primary key called ID.
    2) In Form 2, you are attempting to copy the ID field from Form 1 as a foreign key in a different file,
    into an indexed field where dups should be allowed.
    3) It throws an error when you try this.

    If the above is true, then first, check to make sure that in the second table that you have set the FK field to "indexed, dups allowed". If that fixes it, please mark the thread solved.

    If not, then please post the specific error message, and indicate step-by-step what you do to get that message.

  3. #3
    sevanty7 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2013
    Posts
    37
    Solved! Not sure how to mark thread as solved though

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

Similar Threads

  1. Replies: 1
    Last Post: 10-29-2012, 08:15 AM
  2. Copy and pasting data in form view help
    By Ash1402 in forum Forms
    Replies: 8
    Last Post: 10-13-2012, 12:36 PM
  3. Copy values from table1 to table2
    By wubbit in forum Queries
    Replies: 2
    Last Post: 04-19-2012, 04:40 PM
  4. Copying and pasting
    By wthoffman in forum Access
    Replies: 1
    Last Post: 04-14-2010, 04:12 AM
  5. Auto set field when pasting
    By resullivan in forum Programming
    Replies: 1
    Last Post: 01-11-2010, 01:49 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