Hi There,
Currently using 2003 and have been altering the Classroom management database found here: (Oops can't post links) Okay its the standard Access 2003 template on their website
On that page you can also see the form I'm currently working on and where my question relates to. You'll notice five students booked onto that course. The students are added to the subform via DISTINCTROW
The Question: I'd like to have a field on the main form (called Booked) that counts the number of students booked on the course within the subform (counting Student) where another given field I've added (attendance) is null. (or even better is not one of three possibilities, as there are four options for that field - null, Attended, Cancelled and DNA. (so not count Cancelled but count the rest)
Many thanks if anyone can assist, and FYI, I'm okay with most of access bar VBA and building code. (I know need to learn more)
Cheers
Dave
PS - For Mods, posted in General as unsure where exactly this question should go!
Currently using 2003 and have been altering the Classroom management database found here: (Oops can't post links) Okay its the standard Access 2003 template on their website
On that page you can also see the form I'm currently working on and where my question relates to. You'll notice five students booked onto that course. The students are added to the subform via DISTINCTROW
Code:
SELECT DISTINCTROW [Students And Classes].StudentID, Students.Trust, [Students And Classes].Attendance, Students.JobTitle, [Students And Classes].ClassID FROM Students INNER JOIN [Students And Classes] ON Students.StudentID=[Students And Classes].StudentID;
The Question: I'd like to have a field on the main form (called Booked) that counts the number of students booked on the course within the subform (counting Student) where another given field I've added (attendance) is null. (or even better is not one of three possibilities, as there are four options for that field - null, Attended, Cancelled and DNA. (so not count Cancelled but count the rest)
Many thanks if anyone can assist, and FYI, I'm okay with most of access bar VBA and building code. (I know need to learn more)
Cheers
Dave
PS - For Mods, posted in General as unsure where exactly this question should go!
Last edited: