Results 1 to 3 of 3
  1. #1
    PATRICKPBME is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2016
    Posts
    171

    Linking Tables - Can I copy common data?

    I have over 500 contracts with the primary key being the contract number. While not needed previously, I now have been asked to create a table showing different payments made under each contract. Some may have only 1 type of payment and others as many as 5. My payment table will have a row for each contract number and a column for each payment type. The common key in each table will be the contract number.

    I don't want to have to type each contract number into the new "payments" table. If I cut and paste and then enforce referential integrity (assuming I can) will:

    1. Changes in data to 1 table make changes to the other?, and;


    2. If I add a new contract to one table will it also be added to the other table?

    Thanks in advance!

  2. #2
    jwhite is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Dec 2012
    Location
    North Carolina
    Posts
    349
    Instead of having repetitive columns for the same entity (payment), each payment type should have its own record.

    tblContracts
    ...ContractID

    tblContractPayments
    ...ContractPaymentID
    ...ContractID
    ...ContractPaymentTypeID

    tblContractPaymentTypes
    ...ContractPaymentTypeID
    ...ContractPaymentType

  3. #3
    PATRICKPBME is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2016
    Posts
    171
    I may not have been clear or (more likely) am not adept enough to understand your suggestion. There will not be multiple payments for each entity. The payment types and amounts will always remain the same. This is just a report that will show what rate is to be paid under each contract. In other words, contract #1 would always be paid, for example, based on the rate in columns 2 and 3. Someone else will be calculating the final payment amount based upon the rates I provide.

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

Similar Threads

  1. Replies: 3
    Last Post: 04-04-2015, 01:17 PM
  2. Replies: 0
    Last Post: 12-01-2014, 02:49 AM
  3. Copy Record data into Two Tables
    By BShick5088 in forum Programming
    Replies: 3
    Last Post: 05-10-2013, 03:02 PM
  4. Replies: 1
    Last Post: 11-12-2012, 02:48 PM
  5. Copy data from Tables in VBA
    By MattyT in forum Programming
    Replies: 4
    Last Post: 12-24-2010, 10:07 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