1 sum (({PV_JobCosts.LabourSecs})/3600)
2 if ({PV_Department.DeptName}) ="Press"
3 and if ({PV_Operation.Operationcode}) ="31;
4 else ="N/A"
I'm assuming you meant "take the sum if deptname = "Press" and op code = "31"
if ({PV_Department.DeptName}) ="Press" and ({PV_Operation.Operationcode}) = "31" then
CStr(sum (({PV_JobCosts.LabourSecs})/3600))
else
"N/A"
Type conversion is required because a formula can't return multiple types.
Edited by Keikoku - 11 Apr 2011 at 9:52am