Results 1 to 2 of 2
  1. #1
    CVesta81 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2012
    Posts
    1

    Question Data Entry Issues using Form with 3 linked Tables

    I have an Access database with three main tables, "tbl1Customers (MASTER)", "tbl2Contacts (MASTER)", and tbl3Addresses (MASTER)". For simplicity purposes, I will refer to these tables as Table1, Table2, and Table3 respectively. I want to be able to add a new record to Table1, and have that record also append to Table2 and Table3, in order to be able to perform data entry in Table2 and Table3. Currently in my form, I cannot perform data entry because when I add a new record in Table1, the primary keys do not get added to Table2 and Table3 and I get an error message when I try to do so.

    Currently I have a form for specifically creating a new record in Table1. When I close the form (OnClose) I want the other two tables to be appended with the same primary key information. In this case the primary key for each table (1 to many relationship) is a field called, "CustomerNo" and "Organization No".

    Let me know if you need any further information about my problem. I appreciate your help!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,970
    You say 'append to Table2 and Table3' - are you duplicating records? Or do you just want the primary key of table 1 saved as foreign key in tables 2 and 3? Have you considered form/subform arrangements?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 5
    Last Post: 08-12-2013, 12:53 AM
  2. Replies: 14
    Last Post: 05-20-2013, 06:02 PM
  3. Speed/perfromance issues with Linked Tables.
    By Jamescdawson in forum Database Design
    Replies: 2
    Last Post: 05-12-2012, 04:04 AM
  4. Data Entry into a Form with 3 Tables
    By norcalpsych in forum Forms
    Replies: 14
    Last Post: 04-03-2012, 07:12 PM
  5. Replies: 1
    Last Post: 11-19-2011, 10:36 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