Results 1 to 4 of 4
  1. #1
    darkwan75 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Apr 2011
    Posts
    2

    Smile Enter Data into a Junction Table

    This might be a ridiculously simple question but here goes anyway. I understand HOW to address Many to Many relationships in Access. I don't have a problem creating a third table with the one to many relationships to both parent tables. This I get. What I'm struggling with is how to enter data INTO the tables. I'm not sure if the junction table merely acts as a tool to join the other tables or if when I (or anyone else for that matter) enters data into which tables they have to enter data.



    Do users have to enter data into all three tables? or does entering data into the to parent tables update the third (junction) table automatically? This is really causing some confusion for me when I'm designing forms because I'm not sure where data is to be entered. Is the junction table used at all in data entry? Do you need to enter duplicate data from both of the parent tables AND the junction table? Any clarification would be extremely helpful.

    Thank you!

  2. #2
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    Normally, you would select one of the two parent tables on which to build your main form. The junction table would be bound to a subform on that main form and you would populate the key field related to the second parent table (the one not used in the main form) via a combo box whose row source is the second parent table.

    Which parent is used for the main form depends on your workflow. For example, let's say that you are assigning training courses (one parent) to an employee (the other parent). Your list of courses stays relatively constant but you regularly need to add courses to an employees required training (junction). In this case, you can use a simple form to populate all of the courses. You would create a form/subform with the employee table bound to the main form and the junction table would be bound to the subform. In the subform, you would use a combo box based on the course table.


    There are ways, to use the Not In List Event of the combo box in the subform to add new courses to the course table, but that will take some Visual Basic for Application code to achieve.

  3. #3
    darkwan75 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Apr 2011
    Posts
    2

    Thanks!

    Thank you so much! that really does answer my question. I guess I was making it more difficult than it actually is. Thanks for your quick response!

  4. #4
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    You're welcome.

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

Similar Threads

  1. Updating a Junction Table
    By oleBucky in forum Forms
    Replies: 4
    Last Post: 04-05-2011, 04:59 PM
  2. Date Lookup in Query for Junction Table
    By Phasma in forum Access
    Replies: 2
    Last Post: 01-21-2011, 03:36 PM
  3. Junction Table
    By mae3n in forum Database Design
    Replies: 2
    Last Post: 01-15-2011, 10:23 PM
  4. How do I enter data automatically?
    By ffurqana in forum Access
    Replies: 0
    Last Post: 07-08-2010, 07:47 PM
  5. Adding a table cannot enter data
    By tak4 in forum Queries
    Replies: 0
    Last Post: 02-03-2009, 10:04 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