Results 1 to 6 of 6
  1. #1
    receptionist_dude is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Jun 2016
    Posts
    3

    What kind of relationship should I use for a two table database?

    Hi all,



    How goes it?

    I'm working at a tutoring center and we're working on a database that keeps track of each one of our tutors as well as the courses they are approved to tutor. My idea is to create a simple database with two tables: "Tutors" and "Courses," with the possibility to see who tutors any given course as well as what courses a specific tutor covers.

    As simple as this sounds I've been off the Access game for a long time and I am having trouble making this work! I am unsure as to how define the relationships between the two tables.

    I tried out the following:


    • Create a list of tutors in the "Tutors" table. In said table I have two fields-- "name" and "courses tutored."
    • Create a list of courses in the "Courses" table.
    • Created a relationship between the courses listed in the "Courses" table to the "courses tutored" field in the "Tutor" table. From there I can select multiple courses because most tutors cover more than one course.


    The idea is to be able to view reports both ways: the tutors covering a specific course and the tutors who cover a specific course.

    I think I am making a mistake with the relationship because the dynamic reports are not working.

    Does anyone know how to help me through this?

    Thank you!
    Last edited by receptionist_dude; 06-19-2016 at 06:58 PM. Reason: Clarify title

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Tutor---->TutorCanTeachCourse<---Course

    I'd try 3 tables as above where ---> represents a 1 to Many relationship

    1 Tutor can Teach Many Courses
    1 Course can be taught by Many Tutors

    Good luck with your project.

  3. #3
    receptionist_dude is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Jun 2016
    Posts
    3
    Thanks, orange!

    I'm still slightly confused, but I will give this a try tomorrow morning at work.

    What am I supposed to use the third table for?

    Can you give me an idea so that I can look up some tutorials?

    I just need something to start my search with (like a topic I can look up) because I'm not fully confident yet!

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Research junction table or [I]linking table or bridging table or associative table

    https://en.wikipedia.org/wiki/Associative_entity



    Here's a free video tutorial by Steve Bishop many to many

  5. #5
    receptionist_dude is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Jun 2016
    Posts
    3
    Thanks!

    Here is what I have so far but it still does not seem to work:

    Click image for larger version. 

Name:	relationships.png 
Views:	12 
Size:	18.9 KB 
ID:	24958

    What am I missing?

    Thanks again!

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    It appears you do not have referential integrity set.
    Also CourseID in tbl Course should be joined with CourseID in tblBridge AND
    tutorId in tblTutor should be joined with tutorId in tblBridge.

    The join lines should show 1 to Many from Courses to tblBridge AND
    1 to Many from Tutors to tblBridge

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

Similar Threads

  1. Replies: 3
    Last Post: 06-02-2015, 06:48 PM
  2. Need help designing VERY simple database...
    By DublinDude in forum Access
    Replies: 5
    Last Post: 02-01-2015, 12:16 PM
  3. Replies: 1
    Last Post: 09-29-2014, 03:35 PM
  4. Need help and advice designing a call center database.
    By AbandonedRobot in forum Database Design
    Replies: 3
    Last Post: 07-20-2014, 01:49 PM
  5. Form that runs query and creates reports
    By Valeda in forum Forms
    Replies: 2
    Last Post: 05-04-2006, 07:01 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