T
TheNovice
To the Best of the Best (yes I am sucking-up early),
Ok here it is:
I am trying to figure out a method that does the following. I have an
employee who works 5 days a week M-F. If they call in sick on Monday or
Friday he is assessed a point and a half (1.5), all other days are one (1)
point.
But, if he misses two or more consecutive days it is only 2 points MAX.
The catch is not including Saturday or Sunday
Now if he misses 3 straight weeks, it is still 2 points.
Just to add to the mix, if he comes in in the second week for just one day
and misses the rest of the time they are both 2 points.
We go with a rolling 6 month period (7/29 - 1/29 etc) so the points drop
after the the six month period.
My table(s) has the follow info.
tblPointData
-----------------------------
pdEmpID 'Employee ID
pdClkIn 'Date Clocked-In or Entry Date (if Absent)
pdType 'REG=Regular Day Worked, NOPAY=usually a personal day, NOP S=No Pay
Sick(NOPAY and NOP S are both absences unless a Supervisor Excuses the Missed
Day
pdPoints 'Points assessed
tblEmpSchd
-----------------------------
esEmpID 'Employee ID
esWrkSchdCode 'Work Schedule Code
esWrkU 'Yes/No Days Worked
esWrkM 'Yes/No Days Worked
esWrkT 'Yes/No Days Worked
esWrkW 'Yes/No Days Worked
esWrkR 'Yes/No Days Worked
esWrkF 'Yes/No Days Worked
esWrkS 'Yes/No Days Worked
Can anyone give me a simple method to Code this so that my table
(tblPointdata)will be updated with the points that need to be assessed to
each employee.
Ok here it is:
I am trying to figure out a method that does the following. I have an
employee who works 5 days a week M-F. If they call in sick on Monday or
Friday he is assessed a point and a half (1.5), all other days are one (1)
point.
But, if he misses two or more consecutive days it is only 2 points MAX.
The catch is not including Saturday or Sunday
Now if he misses 3 straight weeks, it is still 2 points.
Just to add to the mix, if he comes in in the second week for just one day
and misses the rest of the time they are both 2 points.
We go with a rolling 6 month period (7/29 - 1/29 etc) so the points drop
after the the six month period.
My table(s) has the follow info.
tblPointData
-----------------------------
pdEmpID 'Employee ID
pdClkIn 'Date Clocked-In or Entry Date (if Absent)
pdType 'REG=Regular Day Worked, NOPAY=usually a personal day, NOP S=No Pay
Sick(NOPAY and NOP S are both absences unless a Supervisor Excuses the Missed
Day
pdPoints 'Points assessed
tblEmpSchd
-----------------------------
esEmpID 'Employee ID
esWrkSchdCode 'Work Schedule Code
esWrkU 'Yes/No Days Worked
esWrkM 'Yes/No Days Worked
esWrkT 'Yes/No Days Worked
esWrkW 'Yes/No Days Worked
esWrkR 'Yes/No Days Worked
esWrkF 'Yes/No Days Worked
esWrkS 'Yes/No Days Worked
Can anyone give me a simple method to Code this so that my table
(tblPointdata)will be updated with the points that need to be assessed to
each employee.