P
Parker
I have a continuous form that keeps track of how many students are in a
class and how many open slots are left for each class. The two tables are
joined to show all the records from the class table and matching records
from the enrollment table.
If no students have entered the class the form will show zero in class
and the max number of open slots. Any students for a class that are active
will show as the number in the class and fewer open slots.
The problem is if all the students entered for a class are not active the
class does not show on the form, even if the class is available for
students. If it is not listed students are not put in the class. What I want
to show is that the class has zero students active with max slots open.
Any suggestions are appreciated.
This is the SQL from the query grid:
SELECT ClassListQuery.ClassClassList, Count(Enrollment.classid) AS
CountOfclassid, Enrollment.Active, ClassListQuery.ActiveClassList
FROM ClassListQuery LEFT JOIN Enrollment ON ClassListQuery.idClassList =
Enrollment.classid
GROUP BY ClassListQuery.ClassClassList, Enrollment.Active,
ClassListQuery.ActiveClassList
HAVING (((Enrollment.Active)="yes") AND
((ClassListQuery.ActiveClassList)="active"));
class and how many open slots are left for each class. The two tables are
joined to show all the records from the class table and matching records
from the enrollment table.
If no students have entered the class the form will show zero in class
and the max number of open slots. Any students for a class that are active
will show as the number in the class and fewer open slots.
The problem is if all the students entered for a class are not active the
class does not show on the form, even if the class is available for
students. If it is not listed students are not put in the class. What I want
to show is that the class has zero students active with max slots open.
Any suggestions are appreciated.
This is the SQL from the query grid:
SELECT ClassListQuery.ClassClassList, Count(Enrollment.classid) AS
CountOfclassid, Enrollment.Active, ClassListQuery.ActiveClassList
FROM ClassListQuery LEFT JOIN Enrollment ON ClassListQuery.idClassList =
Enrollment.classid
GROUP BY ClassListQuery.ClassClassList, Enrollment.Active,
ClassListQuery.ActiveClassList
HAVING (((Enrollment.Active)="yes") AND
((ClassListQuery.ActiveClassList)="active"));