Hey Guys, Need a bit of help again, I need to create a report that will look at the time that a group of people are logged in and then based off of how long they were staffed, tell me how many minutes they should be in break and lunch.
Ex.
If an employee is logged in for 2Hrs 10min they get a 10min break
If an employee is logged in for 4-5 Hrs they get a 15 min break
If an employee is logged in for 5.5-6.5 hours they get a 15min break and 30 min lunch
If an employee is logged in for 7.0 -11.5 hours two 15min breaks and one 30 min lunch
If an employee is logged in for 12 hours three 15min breaks, plus one 30 lunch.
the report I have pulled shows name and staffed time.
I have flirted with the Idea of a macro and assigning variables... and a nested if statement... but not quite sure on how to get there... Hope there is help to get on this..
Thanks guys
Ex.
If an employee is logged in for 2Hrs 10min they get a 10min break
If an employee is logged in for 4-5 Hrs they get a 15 min break
If an employee is logged in for 5.5-6.5 hours they get a 15min break and 30 min lunch
If an employee is logged in for 7.0 -11.5 hours two 15min breaks and one 30 min lunch
If an employee is logged in for 12 hours three 15min breaks, plus one 30 lunch.
the report I have pulled shows name and staffed time.
I have flirted with the Idea of a macro and assigning variables... and a nested if statement... but not quite sure on how to get there... Hope there is help to get on this..
Thanks guys