I was able to glean syntax online for a DCount on a form that counts
the number of 'misbehavior' incidents for students for the current
day:
=DCount("Studen tID","Incidents ","StudentI D=" & Forms!
frmIncidentSumm ary!StudentID & " and
datediff(""d"", IncidentDateTim e,date())=0").
However, there is another field, named IntType, that categorizes the
types of incdents. How can this additional criteria, for instance,
Forms!frmIncide ntSummary!IntTy pe = 1 or IntType = 3 or IntType = 5 be
added into the DCount, counting the number AND types of incidents for
students for the current day?
Where IntType 1 = Hallway, IntType 3 = SRoom, and IntType 5 = Off-
Grounds Suspension
IncTypeID 1 2 3 4 5
IncType --- Hallway SBooth SRoom On-Ground Off-
Ground
IncAbbreviation HAL SB SR ON OFF
Therefore, there would be 5 additional columns with 5 DCounts
summarizing this info. Thanks
the number of 'misbehavior' incidents for students for the current
day:
=DCount("Studen tID","Incidents ","StudentI D=" & Forms!
frmIncidentSumm ary!StudentID & " and
datediff(""d"", IncidentDateTim e,date())=0").
However, there is another field, named IntType, that categorizes the
types of incdents. How can this additional criteria, for instance,
Forms!frmIncide ntSummary!IntTy pe = 1 or IntType = 3 or IntType = 5 be
added into the DCount, counting the number AND types of incidents for
students for the current day?
Where IntType 1 = Hallway, IntType 3 = SRoom, and IntType 5 = Off-
Grounds Suspension
IncTypeID 1 2 3 4 5
IncType --- Hallway SBooth SRoom On-Ground Off-
Ground
IncAbbreviation HAL SB SR ON OFF
Therefore, there would be 5 additional columns with 5 DCounts
summarizing this info. Thanks
Comment