I was not sure how to correctly phrase what I am trying to accomplish in the title. I have a table of data for students that includes the following fields:
UniqueID (primary key)
StudentID
Name
Course
Grade
LastDateAttended
In this table, a student will be listed each time for each course they enrolled in. So if they are in 3 classes, there will be three records for them.
What I want to do is return query results by looking at the group of courses for the student and returning all records for each class if the attend date on any class is not greater than May 7, 2017.
It is an all or nothing sort of situation. So if they attended three courses, and none of these courses has LastDateAttended greater than 7 May, I want all three lines in the query results. If any one of the classes is greater than 7 May, I want none of the classes in the result.
I hope that makes sense. I have tried to think of a way of doing it, but so far my Access skills have been limited to general query types, the easy peasy kind. I'm suspecting I may need to do some kind of VB code or SQL? I'm just not sure how to go about it.
Any thoughts on it are appreciated.
Thank you!
UniqueID (primary key)
StudentID
Name
Course
Grade
LastDateAttended
In this table, a student will be listed each time for each course they enrolled in. So if they are in 3 classes, there will be three records for them.
What I want to do is return query results by looking at the group of courses for the student and returning all records for each class if the attend date on any class is not greater than May 7, 2017.
It is an all or nothing sort of situation. So if they attended three courses, and none of these courses has LastDateAttended greater than 7 May, I want all three lines in the query results. If any one of the classes is greater than 7 May, I want none of the classes in the result.
I hope that makes sense. I have tried to think of a way of doing it, but so far my Access skills have been limited to general query types, the easy peasy kind. I'm suspecting I may need to do some kind of VB code or SQL? I'm just not sure how to go about it.
Any thoughts on it are appreciated.
Thank you!