N
neil_val
Hi, please can you help me see the error?
This is my query qryChartTest
CountOfEmployeesName PMonth Total Hours ContractualHrs HrsToDo
OT40+ OT50+
1 Mar 07 258
200 205
I am trying to define the hours that are over the ContractualHrs but
less than HrsToDo
and then the same for Hours over HrsToDo.
Sum(IIf([Total Hours]>([ContractualHrs]*[CountOfEmployeesName]),[Total
Hours]-([ContractualHrs]*[CountOfEmployeesName])),IIf([Total
Hours]>[HrsToDo],[HrsToDo]-([ContractualHrs]*[CountOfEmployeesName])),
0)
Thanks
This is my query qryChartTest
CountOfEmployeesName PMonth Total Hours ContractualHrs HrsToDo
OT40+ OT50+
1 Mar 07 258
200 205
I am trying to define the hours that are over the ContractualHrs but
less than HrsToDo
and then the same for Hours over HrsToDo.
Sum(IIf([Total Hours]>([ContractualHrs]*[CountOfEmployeesName]),[Total
Hours]-([ContractualHrs]*[CountOfEmployeesName])),IIf([Total
Hours]>[HrsToDo],[HrsToDo]-([ContractualHrs]*[CountOfEmployeesName])),
0)
Thanks