G
Guest
This is my first time working with access and I have been trying to complete
the following calculation using the query builder for the past couple of days
without success.
I am trying to calculate RegHrs based on the following conditions below:
If Statutory = “N†and ActualDailyHours > 0 add ActualDailyHours to
RegHrs
Or Statutory = “N†and DailyHours > 0 add Daily Hours to RegHrs
This is my latest version but I still get invalid syntax ???
Reghrs:IFF [DriverSchedule_YTD]![Statutory] ="N" And
[DriverSchedule_YTD]![DailyHours] > 0,
Sum ([DriverSchedule_YTD]![lDailyHours] Or
IFF [DriverSchedule_YTD]![Statutory] ="N" And
[DriverSchedule_YTD]![ActualDailyHours] > 0,
Sum ([DriverSchedule_YTD]![ActualDailyHours]
Does someone know the correct syntax ?
Any help is appreciated
the following calculation using the query builder for the past couple of days
without success.
I am trying to calculate RegHrs based on the following conditions below:
If Statutory = “N†and ActualDailyHours > 0 add ActualDailyHours to
RegHrs
Or Statutory = “N†and DailyHours > 0 add Daily Hours to RegHrs
This is my latest version but I still get invalid syntax ???
Reghrs:IFF [DriverSchedule_YTD]![Statutory] ="N" And
[DriverSchedule_YTD]![DailyHours] > 0,
Sum ([DriverSchedule_YTD]![lDailyHours] Or
IFF [DriverSchedule_YTD]![Statutory] ="N" And
[DriverSchedule_YTD]![ActualDailyHours] > 0,
Sum ([DriverSchedule_YTD]![ActualDailyHours]
Does someone know the correct syntax ?
Any help is appreciated