sparklegrrl
Registered User.
- Local time
- Today, 00:01
- Joined
- Jul 10, 2003
- Messages
- 124
My database here at the office is FINALLY up and running minus a few little kinks to be worked out.
The first one has to do with time cards. Our employees may work 14 hours in one day and it is broken out on the time cards and by job as 8 regular hours and 6 overtime hours however, at the end of the week if this employee took off the next day and he doesn't have 40 hours then he is paid regular time. Basically time on jobs is figured on a daily basis BUT employee paychecks are figured on weekly time.
So, I have my report totalling the regular hours and overtime hours for the week. I then have an unbound text box that calculates Text19 (regular hours) and Text21 (overtime) hours then subtracts 40 and displays the accurate overtime number.
I have 2 questions.
a) I need the overtime box described above to only display a number above zero. Right now it calculates it and displays -2.0 or whatever.
b) I need to add Text19 (regular time) and Text21 (overtime) and if it is over 40 hours, it needs to display 40 however, if it is under 40 hours, it needs to display that number instead.
Thanks for any help!
The first one has to do with time cards. Our employees may work 14 hours in one day and it is broken out on the time cards and by job as 8 regular hours and 6 overtime hours however, at the end of the week if this employee took off the next day and he doesn't have 40 hours then he is paid regular time. Basically time on jobs is figured on a daily basis BUT employee paychecks are figured on weekly time.
So, I have my report totalling the regular hours and overtime hours for the week. I then have an unbound text box that calculates Text19 (regular hours) and Text21 (overtime) hours then subtracts 40 and displays the accurate overtime number.
I have 2 questions.
a) I need the overtime box described above to only display a number above zero. Right now it calculates it and displays -2.0 or whatever.
b) I need to add Text19 (regular time) and Text21 (overtime) and if it is over 40 hours, it needs to display 40 however, if it is under 40 hours, it needs to display that number instead.
Thanks for any help!