SurreyNick
Member
- Local time
- Today, 22:25
- Joined
- Feb 12, 2020
- Messages
- 127
I’m not even sure I’m asking the question the right way but hopefully you’ll get the gist.
I have a form (pic attached) from which tutors can alter the details of tests that students are scheduled to take. The subform recordset shows only those students enroled on a test where there are no test results. Tutors can select individual students in the subform and from the boxes and buttons on the main form can change the scheduled date, change the exam paper or cancel the test altogether. All very straightforward stuff, but the problem I have is I can’t include the classID in the query that makes up the recordset of the subform because if I do the recordset becomes not updateable and that means I then can’t use the YN check box to select students.
If there are only a few students in the recordset the absence of the classID isn’t a problem, but if there are lots it will be hard to distinguish which students are in which class and this will cause problems for the tutors. I would like to add a “select all students in class” option too.
The classID is in my Classes_Students table and this table also contains a studentID field which is present in my recordset but as have explained I can’t add this table to the query that provides the data for my subform.
Is there a way to filter a recordset using a field not included in the recordset or within the underlying tables that make up the recordset?
Perhaps I’m just approaching this all wrong and there’s a better way to go about the whole thing.
I’d welcome some thoughts or solutions.
I have a form (pic attached) from which tutors can alter the details of tests that students are scheduled to take. The subform recordset shows only those students enroled on a test where there are no test results. Tutors can select individual students in the subform and from the boxes and buttons on the main form can change the scheduled date, change the exam paper or cancel the test altogether. All very straightforward stuff, but the problem I have is I can’t include the classID in the query that makes up the recordset of the subform because if I do the recordset becomes not updateable and that means I then can’t use the YN check box to select students.
If there are only a few students in the recordset the absence of the classID isn’t a problem, but if there are lots it will be hard to distinguish which students are in which class and this will cause problems for the tutors. I would like to add a “select all students in class” option too.
The classID is in my Classes_Students table and this table also contains a studentID field which is present in my recordset but as have explained I can’t add this table to the query that provides the data for my subform.
Is there a way to filter a recordset using a field not included in the recordset or within the underlying tables that make up the recordset?
Perhaps I’m just approaching this all wrong and there’s a better way to go about the whole thing.
I’d welcome some thoughts or solutions.