Hi all,
I have an access query that is totaling hours worked grouped by day. I need to give a "Regular Hours Total" and an "Overtime Hours Total". I am trying to use the following syntax, but keep getting errors.
If Sum([Total Hours]) > 8 Then =8 Else =Sum([Total Hours])
Then for to calculate the overtime hours I am using this
If Sum([Total Hours]) > 8 Then =(Sum([Total Hours]) -8) Else = 0
Can someone tell me the correct syntax to get this to work.
Thanks,
mot98
![[cheers] [cheers] [cheers]](/data/assets/smilies/cheers.gif)
"I'd rather be dead and cool..then alive and uncool."
---Harley Davidson & The Marlboro Man
I have an access query that is totaling hours worked grouped by day. I need to give a "Regular Hours Total" and an "Overtime Hours Total". I am trying to use the following syntax, but keep getting errors.
If Sum([Total Hours]) > 8 Then =8 Else =Sum([Total Hours])
Then for to calculate the overtime hours I am using this
If Sum([Total Hours]) > 8 Then =(Sum([Total Hours]) -8) Else = 0
Can someone tell me the correct syntax to get this to work.
Thanks,
mot98
![[cheers] [cheers] [cheers]](/data/assets/smilies/cheers.gif)
"I'd rather be dead and cool..then alive and uncool."
---Harley Davidson & The Marlboro Man