Title may not adequately describe what I'm trying to do.
I work for a school and I'm developing a way to track student tardies.
I need a way to determine if a student has received multiple tardies in a single day and to count how many they got on that day.
Specifically, we have a threshold of 7 tardies. Once a student gets their 7th tardy they receive disciplinary action, like a detention. The problem is, I can easily determine if they get 7 tardies on a certain day, but frequently, they get an 8th tardy on the same day too. Since my query identifies 7 and not 8, it will skip over those students who got two tardies that day (7th and 8th).
I think an IIf statement in a new column is what I need, but I don't have the expertise to write it.
It would go something like. ..If the number of total tardies for the student is 8 and the student has received more than one tardy today, then enter an 8 in this column.
The next threshold is 9 and I have that covered, so I'm looking at for a way to identify students who have 8 tardies and received more than one tardy today. [Date] is a field in my query, so Date() can be used in the statement and [Total of Date] is also a field. Total of Date = total tardies. Thanks for any help you can give.
I work for a school and I'm developing a way to track student tardies.
I need a way to determine if a student has received multiple tardies in a single day and to count how many they got on that day.
Specifically, we have a threshold of 7 tardies. Once a student gets their 7th tardy they receive disciplinary action, like a detention. The problem is, I can easily determine if they get 7 tardies on a certain day, but frequently, they get an 8th tardy on the same day too. Since my query identifies 7 and not 8, it will skip over those students who got two tardies that day (7th and 8th).
I think an IIf statement in a new column is what I need, but I don't have the expertise to write it.
It would go something like. ..If the number of total tardies for the student is 8 and the student has received more than one tardy today, then enter an 8 in this column.
The next threshold is 9 and I have that covered, so I'm looking at for a way to identify students who have 8 tardies and received more than one tardy today. [Date] is a field in my query, so Date() can be used in the statement and [Total of Date] is also a field. Total of Date = total tardies. Thanks for any help you can give.
Last edited: