Good morning everyone,
I have a query that shows the following:-
1) List of courses (e.g. Art and Its History) (called CourseName)
2) Number of students allowed on the course (e.g. 12) (called CourseCap)
3) Number of students currently allocated to the course (a count of a field called StudentID)
4) The difference between (2) and (3), so if a course allows 12 students, and we have 8 allocated to it, the query returns 4 (an expression, which is: Diff: [qryCappedCourses]![CourseCap]-[qryStudentIDCount]![CountofStudentID])
My problem is this. Some of our courses do not have a limit on the number of students who can be allocated, so the CourseCap field for these courses is set to 0. When I run the query, therefore, it only returns those courses that have a cap AND students allocated to it, whereas I want the query to return ALL courses, whether they have students allocated to it or not.
How do I do that please? I seem to be going round in circles.
Many thanks!
Anna
I have a query that shows the following:-
1) List of courses (e.g. Art and Its History) (called CourseName)
2) Number of students allowed on the course (e.g. 12) (called CourseCap)
3) Number of students currently allocated to the course (a count of a field called StudentID)
4) The difference between (2) and (3), so if a course allows 12 students, and we have 8 allocated to it, the query returns 4 (an expression, which is: Diff: [qryCappedCourses]![CourseCap]-[qryStudentIDCount]![CountofStudentID])
My problem is this. Some of our courses do not have a limit on the number of students who can be allocated, so the CourseCap field for these courses is set to 0. When I run the query, therefore, it only returns those courses that have a cap AND students allocated to it, whereas I want the query to return ALL courses, whether they have students allocated to it or not.
How do I do that please? I seem to be going round in circles.
Many thanks!
Anna