I have a table that lists employee name, date, Absent Type(AllDay,Late or LeaveEarly and Value (1 for absent and .5 for Late or LeaveEarly). If The employee is listed as absent in this table the point value is 1.
Here is my question: if the employee is absent for two consecutive dates (e.g. 1/30/17 and 1/31/17) instead of 1 point for each day, these 2 records need to be changed to .5 for each day.
How do I go about writing an expression in the query to do this? I'm at a loss and struggling to figure this out.
Thanks in advance for the help
Here is my question: if the employee is absent for two consecutive dates (e.g. 1/30/17 and 1/31/17) instead of 1 point for each day, these 2 records need to be changed to .5 for each day.
How do I go about writing an expression in the query to do this? I'm at a loss and struggling to figure this out.
Thanks in advance for the help