I have a query called Weekly attendance, from the field total days attended, I would like an IIF function thats says if total days attended is less than 3 then it is equal to $40 ,if it is more than 3 it is equal to $75.
Any help is appreciated.
Thanks in advance.
PS: here is the SQL for the query I'm trying to add the IIF function to:
SELECT Sum((Abs([DaysPresent]))) AS [Total Days Attended], QryWeeklyAttendance.ChildID, QryWeeklyAttendance.[First Name], QryWeeklyAttendance.[Last Name]
FROM QryWeeklyAttendance
GROUP BY QryWeeklyAttendance.ChildID, QryWeeklyAttendance.[First Name], QryWeeklyAttendance.[Last Name];
Any help is appreciated.
Thanks in advance.
PS: here is the SQL for the query I'm trying to add the IIF function to:
SELECT Sum((Abs([DaysPresent]))) AS [Total Days Attended], QryWeeklyAttendance.ChildID, QryWeeklyAttendance.[First Name], QryWeeklyAttendance.[Last Name]
FROM QryWeeklyAttendance
GROUP BY QryWeeklyAttendance.ChildID, QryWeeklyAttendance.[First Name], QryWeeklyAttendance.[Last Name];