A
AccessUser777 via AccessMonster.com
Hi all,
Was wondering if I could get some help/insight/direction on how to tackle an
issue. I have a table that contains employee info along with dates that the
employee was absent. What I want to do is query this table to get all the
dates where an employee is absent consecutively and only apply one day of
chargeable hours.
For Example:
employeeID DateAbsent ChargeableHrs
ABC123 01/05/2010 8
ABC123 01/06/2010 8
ABC123 01/07/2010 8
ABC123 01/08/2010 8
ABC123 01/25/2010 8
ABC123 01/30/2010 8
ABC123 02/17/2010 8
ABC123 02/18/2010 8
ABC123 02/28/2010 8
For Jan/2010 employee ABC123 would only have 24 hours charged against him vs
64 and in Feb/2010 the same employee would have 8 vs 16 chargeable hrs.
Any idea on how to accomplish this or if it is even feasible? ANY insight is
appreciated. Thanks.
Was wondering if I could get some help/insight/direction on how to tackle an
issue. I have a table that contains employee info along with dates that the
employee was absent. What I want to do is query this table to get all the
dates where an employee is absent consecutively and only apply one day of
chargeable hours.
For Example:
employeeID DateAbsent ChargeableHrs
ABC123 01/05/2010 8
ABC123 01/06/2010 8
ABC123 01/07/2010 8
ABC123 01/08/2010 8
ABC123 01/25/2010 8
ABC123 01/30/2010 8
ABC123 02/17/2010 8
ABC123 02/18/2010 8
ABC123 02/28/2010 8
For Jan/2010 employee ABC123 would only have 24 hours charged against him vs
64 and in Feb/2010 the same employee would have 8 vs 16 chargeable hrs.
Any idea on how to accomplish this or if it is even feasible? ANY insight is
appreciated. Thanks.