Results 1 to 7 of 7
  1. #1
    Zuca86 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2013
    Posts
    3

    Form that writes into two tables

    I have two tables that have a 1-to-1, total participation relationship which I'm not sure if I have accurately represented. (Every registration must have 1 contact and every contact must have 1 registration.)

    My main goal is to have a data entry form that writes into these two tables. When I attempted to create a form for this using a sub-form method, I would fill out on portion of the form related to the registrations table and then when I went to the next portion related to the contacts table, I got an error about the primary key of registrations not writing over to writing itself over on to the contacts table.



    Click image for larger version. 

Name:	relationships.jpg 
Views:	12 
Size:	104.0 KB 
ID:	11842

    Can someone tell me what the best way to approach this problem would be?

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    If it is a 1 to 1 relationship, why not combine the two tables? If it is a matter of real estate, use a tab control to separate the controls - a registration tab and a contact tab.

  3. #3
    Zuca86 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2013
    Posts
    3
    Quote Originally Posted by ssanfu View Post
    If it is a 1 to 1 relationship, why not combine the two tables? If it is a matter of real estate, use a tab control to separate the controls - a registration tab and a contact tab.
    I'm just learning these things now, but there wouldn't be any normalization issues if I did that? If I combine both tables, I wouldn't need a "Contact ID", correct?

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,743
    Do you have a list of specifications or business facts that you are working with?

  5. #5
    Zuca86 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2013
    Posts
    3
    Quote Originally Posted by orange View Post
    Do you have a list of specifications or business facts that you are working with?
    No set of specifications. Not sure what you mean by business facts.

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,743

  7. #7
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Quote Originally Posted by Zuca86 View Post
    I'm just learning these things now, but there wouldn't be any normalization issues if I did that? If I combine both tables, I wouldn't need a "Contact ID", correct?
    Correct, no normalization issues; "ContactID" would not be needed.

    In addition to the links Orange provided, you might check out

    http://www.accessmvp.com/Strive4Peace/

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

Similar Threads

  1. Form from 2 tables
    By Canadiangal in forum Forms
    Replies: 4
    Last Post: 08-28-2012, 05:56 PM
  2. Two Tables, One Form
    By imintrouble in forum Forms
    Replies: 7
    Last Post: 02-03-2012, 01:23 PM
  3. Replies: 14
    Last Post: 01-26-2012, 02:20 AM
  4. Replies: 3
    Last Post: 08-08-2010, 05:33 PM
  5. Replies: 9
    Last Post: 03-24-2009, 09:19 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