Thank you for your reply - the query already does all the hours seperation and calculations. I'm concerned with the report formatting only. Can I use the IFF function on a report field? I can't seem to get it to work. I need something like this in one field so that the report will print in an acceptable format to present to clients:
iff(RegPay <> OTPay, RegHrs, RegHrs+OTHrs)
After that I simply have the overtime hours set not to show up if the payrates are the same (RegPay = OTPay) or if OTHrs = 0.
Quote:
Originally Posted by nico5038
You can change your report query to deliver the hours in separate records like:
select "Regular"as Type, IIF(hours>40,40,hours) as RegularHours from tblYours
UNION
select "Overtime" as Type, hours-40 as Overtime from tblYours where hours > 40;
This UNION query will give one record for 40 hours or less and two for > 40 hours.
You'll have to add ofcourse the additional fields (like the rate), but i guess you get the idea.
Nic;o)