Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 31
  1. #16
    annemrosenberg is offline Expert in Training
    Windows 7 64bit Access 2007
    Join Date
    Jul 2011
    Posts
    39
    So this may sound like a dumb question but I'm new to junction tables - does the data have to be all filled in or is it automatic?

  2. #17
    annemrosenberg is offline Expert in Training
    Windows 7 64bit Access 2007
    Join Date
    Jul 2011
    Posts
    39
    Do I have to populate the junction tables with the data?

  3. #18
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    It has to be filled out manually. Thankfully, it's only at first and can be aided through automation in forms/VBA. Do a google search for "many to many relationship" and you'll see how a junction table is used as well as how to create forms to make data entry a bit easier.

  4. #19
    annemrosenberg is offline Expert in Training
    Windows 7 64bit Access 2007
    Join Date
    Jul 2011
    Posts
    39
    So I think I've got all the tables set up correctly - so which are the PKs in each junction table? EmpSkill_ID and ProjSkill_ID?

  5. #20
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    Yep. The other two fields are foreign keys to their home tables.

  6. #21
    annemrosenberg is offline Expert in Training
    Windows 7 64bit Access 2007
    Join Date
    Jul 2011
    Posts
    39
    Ok so everything is set up correctly. Now This is what My relationship looks like. Is this correct? Now I can use Design Query?

  7. #22
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    Yea that looks about right. You should be good to go?

  8. #23
    annemrosenberg is offline Expert in Training
    Windows 7 64bit Access 2007
    Join Date
    Jul 2011
    Posts
    39
    Ok both the queries to match employees to skills and project to skills worked fine. Now how should I go about Matching the employee to the project?

  9. #24
    annemrosenberg is offline Expert in Training
    Windows 7 64bit Access 2007
    Join Date
    Jul 2011
    Posts
    39
    Nevermind I think I got it! I used the two queries and joined them by Skill_ID to make a third query and it worked! Does that make sense?

  10. #25
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    Query the junction tables against eachother. One gives you all the skills for an employee. The other gives you all the skills required for a certain job.

    Either way works. Query the queries or the junction tables directly.

  11. #26
    annemrosenberg is offline Expert in Training
    Windows 7 64bit Access 2007
    Join Date
    Jul 2011
    Posts
    39
    Last Question - any ideas on to get it to work if only 2 out of 3 skills are a match?

  12. #27
    annemrosenberg is offline Expert in Training
    Windows 7 64bit Access 2007
    Join Date
    Jul 2011
    Posts
    39
    Whats your address!? I need to send you a muffin basket or something for all this help. You saved me on this one!

  13. #28
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    You would run another query to get the count() of skills per job and the count() of skills per employee. Then do WHERE count(skills) - count(employee) = 1

    That way, it's not just 2 out of three, but 1 less than whatever is required.

  14. #29
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    No need for muffin baskets but I will accept cash.

    Mark the thread solved if that's all you need.

  15. #30
    annemrosenberg is offline Expert in Training
    Windows 7 64bit Access 2007
    Join Date
    Jul 2011
    Posts
    39
    That's All I need!!!!!!!!! Thank you so much!!!!!!

Page 2 of 3 FirstFirst 123 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Table Relationships
    By ledbyrain in forum Access
    Replies: 1
    Last Post: 09-07-2010, 05:05 PM
  2. Plz help Table Relationships
    By heominhon127 in forum Database Design
    Replies: 6
    Last Post: 09-06-2010, 01:36 PM
  3. Table Relationships
    By goestejs in forum Database Design
    Replies: 3
    Last Post: 08-23-2010, 07:39 AM
  4. Query involving data from different sources
    By nodnud in forum Queries
    Replies: 1
    Last Post: 08-12-2010, 06:11 PM
  5. Table Relationships
    By seanp in forum Access
    Replies: 2
    Last Post: 04-15-2010, 07:12 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