Results 1 to 5 of 5
  1. #1
    hesca is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    14

    Question Need DB to check if users meet lists of requirements. How??

    Hello experts.



    DataBase rookie here. I am programming a students database and need to create the necessary tables and queries to specify which courses are required to get specific certifications and to crosscheck this data with the students' approved courses. Tricky deal though cuz most of the certification paths have courses in common.

    So, among other tables, I have two that pertain to this issue. These are the names and fields on the tables:

    StudentsAndCourses: A list of studentID, CourseID and Grade.
    CertificationStages: includes a list of all the certifications along with the carreer each of them belong to AND the requirements(which I havent defined because I donīt know which datatypes and fields would be better for this)

    My best guess is to use a lookup field called "RequiredCourses" with multiple values so I can just use the checkboxes to define the requiered courses.

    However, I donīt how to make access compare this data against the approved courses on the "students and courses" table. A query maybe? I donīt know.

    I tried but the data gets all fumbled up.

    So, my question is: what fields would you include in the "certification requierements" table in order to have the database compare the students' approved courses against the "certification requirements" table?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    What if you have a list of the Certs. then pick the ones you need required...(like in photo)
    Then you join this picked list to the students_certs to get the results.
    Click image for larger version. 

Name:	pick3.png 
Views:	15 
Size:	20.2 KB 
ID:	16808

  3. #3
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    if you're looking for a hint at structure this is what I'd do:

    tblStudents (PK autonumber is fine, with student related information)
    tblClasses (PK autonumber is fine, with class related information
    tblCertifications (PK autonumber is fine, with certification related information)
    tblCertClass (PK autonumber is fine, FK to tblCertifications, FK to Classes, this tells you which classes are required for which certifications)
    tblStudentClass (PK autonumber is fine, FK tblStudents, FK Classes, this tells you which classes a student has taken)

    then when you are checking whether or not a particular person has taken the required classes for a particular certification you'd be checking the information on tblCertClass vs the information on tblStudentClass

  4. #4
    hesca is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    14
    rpeare, youīre my hero of the day. Lemme see if I understood.

    In tblCertClass I would a field called "cerfication" with many occurrences of the same certification and another field called class, to link each class to the certification. Is that what you mean?

    Thanks a mill!

  5. #5
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    Both tblCertClass and StudentClass are called Junction Tables. They are relating two tables that otherwise would not relate to one another. So yes, your table tbCertClass would contain your the FK (foreign key) to your both your CERTIFICATION table and your CLASS table. Do not store anything but primary keys in your junction table unless absolutely necessary.

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

Similar Threads

  1. Replies: 1
    Last Post: 07-31-2013, 05:11 PM
  2. Only show records that meet criteria
    By RussH in forum Reports
    Replies: 9
    Last Post: 04-10-2013, 05:25 AM
  3. Query for records that do not meet criteria
    By survivo01 in forum Queries
    Replies: 3
    Last Post: 12-16-2012, 05:45 PM
  4. GCP requirements
    By wilbr73 in forum Access
    Replies: 1
    Last Post: 11-20-2012, 12:44 PM
  5. Check if form is opened by other users
    By ser01 in forum Programming
    Replies: 2
    Last Post: 05-03-2010, 12:07 AM

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