E
Eric G
I have a select query named StatTeachRanked as follows:
SELECT Count(Detentions.DateDet) AS [CountOf#Detentions],
Detentions.TeacherID
FROM Detentions
GROUP BY Detentions.TeacherID
HAVING (((Detentions.TeacherID) Is Not Null))
ORDER BY Count(Detentions.DateDet) DESC , Detentions.TeacherID;
Can the following form coding be used that relies on the
StatTeachRanked query?
''If Nz(DLookup("[CountOf#Detentions]", "StatTeachRanked",
"TeacherID='" & UserID & "'"), 0) < 4 Then
''DoCmd.OpenForm "frmCheckList"
It seems that this code can be used but it is not returning the
desired results.
For example TeacherID EGR who has a CountOf#Detentions of 7
should not have frmCheckList opening, but such is the case right now.
Is there something obviously wrong that sticks out here?
TIA Eric
SELECT Count(Detentions.DateDet) AS [CountOf#Detentions],
Detentions.TeacherID
FROM Detentions
GROUP BY Detentions.TeacherID
HAVING (((Detentions.TeacherID) Is Not Null))
ORDER BY Count(Detentions.DateDet) DESC , Detentions.TeacherID;
Can the following form coding be used that relies on the
StatTeachRanked query?
''If Nz(DLookup("[CountOf#Detentions]", "StatTeachRanked",
"TeacherID='" & UserID & "'"), 0) < 4 Then
''DoCmd.OpenForm "frmCheckList"
It seems that this code can be used but it is not returning the
desired results.
For example TeacherID EGR who has a CountOf#Detentions of 7
should not have frmCheckList opening, but such is the case right now.
Is there something obviously wrong that sticks out here?
TIA Eric