I have a report that shows the hours that are worked by employees, who get paid on a biweekly basis. There is a "Total Hours Worked" column that is further divided into "Week1" and "Week2." It looks like this example:
[HTML]Total Hours Worked
Week1 Week2
8.00
8.00
8.00
9.00
11.00
3.50
6.00
6.00
6.00
6.00
----------------
44.00 27.50[/HTML]
The reason I have the "Total Hours Worked" column divided into Week1 and Week2 is because I want to be able to calculate whether an employee has worked more than 40 hours per week for Overtime purposes.
The control source for the Week1 work hours is a field named txtWeek1 and here is the code that I use
Expand|Select|Wrap|Line Numbers
- =IIF([DateIn]-Forms!frmDates4Pay.txtDateBegin<7,(Format([TimeWorked],"#.00"))," ")
Expand|Select|Wrap|Line Numbers
- =IIF([DateIn]-Forms!frmDates4Pay.txtDateBegin>6,(Format([TimeWorked],"#.00"))," ")
Expand|Select|Wrap|Line Numbers
- =Format(Sum([TimeWorked]),"#.00")
I am running XP and using Access 2002 in 2000 mode.
Any assistance will be greatly appreciated,
David