Ive read the sticky about using tables to exclude data, unfortunately I can't figure out exactly what to do to get the results I want even after reading it. Anyway here's my problem - I want a field in my Enrollment table to lookup data from my Subjects table but exclude data that does not meet the following criteria:
1. The student has enrolled and passed the prerequisites of the subject
2. The student has not already enrolled the subject within the last 6 months
The tables are currently set up like so:
The prerequisite field in the Subjects table use the values from the code field. For example Subject 4 may have the prerequisites Subject 1 & 2 before it can be enrolled.
I can't figure out how to make the query display just the subjects that the student can enroll based on the criteria I mentioned. Any tip would be greatly appreciated. Thanks in advance!
1. The student has enrolled and passed the prerequisites of the subject
2. The student has not already enrolled the subject within the last 6 months
The tables are currently set up like so:
The prerequisite field in the Subjects table use the values from the code field. For example Subject 4 may have the prerequisites Subject 1 & 2 before it can be enrolled.
I can't figure out how to make the query display just the subjects that the student can enroll based on the criteria I mentioned. Any tip would be greatly appreciated. Thanks in advance!
Last edited: