SurreyNick
Member
- Local time
- Today, 15:47
- Joined
- Feb 12, 2020
- Messages
- 127
Hoping someone can help.
I have a junction table which contains records of students who have been allocated class year groups. It contains 3 fields; StudentID, ClassID, and AcademicYearID. A student can only be allocated one class year group in any academic year, so the table has a composite primary key on StudentID and AcademicYearID
I am trying to create a query which filters the records in this junction table to show me just those students who were allocated in a class in 2019 and have not yet been allocated to in a class in 2020.
I can easily find all those students allocated classes in 2019, but as I allocate these students a class in 2020 and I re-run the query I want the record list to reduce showing me just those students who still need to be allocated a class in 2020 and I can’t work out how to do this, i.e. I want to filter out those records where the student ID appears twice in the table, once for 2019 and once for 2020.
I must be missing something because I’ve searched through my Access manuals and I can’t find the solution. Can anyone help?
Thank you.
I have a junction table which contains records of students who have been allocated class year groups. It contains 3 fields; StudentID, ClassID, and AcademicYearID. A student can only be allocated one class year group in any academic year, so the table has a composite primary key on StudentID and AcademicYearID
I am trying to create a query which filters the records in this junction table to show me just those students who were allocated in a class in 2019 and have not yet been allocated to in a class in 2020.
I can easily find all those students allocated classes in 2019, but as I allocate these students a class in 2020 and I re-run the query I want the record list to reduce showing me just those students who still need to be allocated a class in 2020 and I can’t work out how to do this, i.e. I want to filter out those records where the student ID appears twice in the table, once for 2019 and once for 2020.
I must be missing something because I’ve searched through my Access manuals and I can’t find the solution. Can anyone help?
Thank you.