Could someone, anyone, help me and compose a VBA script for me to use with MS Access?
I know nothing about MS Access of VBA scripting for it but really need some help.
I have an MS Access database on a server at work that records employee sick leave, by hour, by date.
I need to know the number of occurences when employees were gone on sick leave for 10 or more consecutive work days, during a calendar year that starts on Jan 1 and ends on Dec 31.
Employees work 7.5 hours in a day, Monday to Friday, no weekends.
I was thinking I need a script that runs a check for 75 hours of sick leave in each 14 day spread during the year.
If I counted right, there should be 255 such spreads: Starting with Jan 1 to 14, then Jan 2 to 15, ... and ending with Dec 18 to 31.
If an employee is gone for 30 consecutive work days, the result should only show him once. But if he goes 10 work days, comes back to work for 5 work days, then goes for another 10 work days, the result should show him twice.
I hope this makes sense and that someone can rise to the challenge and put this together.
Thank you
Erik Lupien
I know nothing about MS Access of VBA scripting for it but really need some help.
I have an MS Access database on a server at work that records employee sick leave, by hour, by date.
I need to know the number of occurences when employees were gone on sick leave for 10 or more consecutive work days, during a calendar year that starts on Jan 1 and ends on Dec 31.
Employees work 7.5 hours in a day, Monday to Friday, no weekends.
I was thinking I need a script that runs a check for 75 hours of sick leave in each 14 day spread during the year.
If I counted right, there should be 255 such spreads: Starting with Jan 1 to 14, then Jan 2 to 15, ... and ending with Dec 18 to 31.
If an employee is gone for 30 consecutive work days, the result should only show him once. But if he goes 10 work days, comes back to work for 5 work days, then goes for another 10 work days, the result should show him twice.
I hope this makes sense and that someone can rise to the challenge and put this together.
Thank you
Erik Lupien
Comment