E
ettekcor
I have a query that has the following fields and data:
EmplID, EmployeeName, Job Code, Cost Center, InPunchDate InPunchTime
OutPunchDate,
235689 Mouse, Micky 58 RN 102326 09/24/2006
6:60:00AM 09/24/2006
235689 Mouse, Micky 58 RN 102326 09/25/2006
7:00:00AM 09/25/2006
235689 Mouse, Micky 58 RN 102326 09/26/2006
9:17:00AM 09/26/2006
235689 Mouse, Micky 58 RN 102326 09/29/2006
6:47:00AM 09/29/2006
OutPunchTime Hours
8:37:00pm 13.2833333333
1:00:00 am 17.5
11:36:00am 2.31666
7:42:00pm 12.41
I have over hundred records that I need to count any employee that
worked a 12 hours shifts for 3 consecutive days then I need to see if
they worked again within the next 24/36 hours.
For this I thought I could use DAYOFWEEK: DatePart("w",[OUTPUNCHDMY])
and then in antoher table I would put the following data Week1
09/24/2006-09/30/2006 and Week 2 10/01/2006-10/07/2006 to help count
work day. however, I still am not sure how I would count the
consecutive date worked.
Anyway, I am still searching for the right way to do this. Please
help!!!
EmplID, EmployeeName, Job Code, Cost Center, InPunchDate InPunchTime
OutPunchDate,
235689 Mouse, Micky 58 RN 102326 09/24/2006
6:60:00AM 09/24/2006
235689 Mouse, Micky 58 RN 102326 09/25/2006
7:00:00AM 09/25/2006
235689 Mouse, Micky 58 RN 102326 09/26/2006
9:17:00AM 09/26/2006
235689 Mouse, Micky 58 RN 102326 09/29/2006
6:47:00AM 09/29/2006
OutPunchTime Hours
8:37:00pm 13.2833333333
1:00:00 am 17.5
11:36:00am 2.31666
7:42:00pm 12.41
I have over hundred records that I need to count any employee that
worked a 12 hours shifts for 3 consecutive days then I need to see if
they worked again within the next 24/36 hours.
For this I thought I could use DAYOFWEEK: DatePart("w",[OUTPUNCHDMY])
and then in antoher table I would put the following data Week1
09/24/2006-09/30/2006 and Week 2 10/01/2006-10/07/2006 to help count
work day. however, I still am not sure how I would count the
consecutive date worked.
Anyway, I am still searching for the right way to do this. Please
help!!!