Here is my query:
SELECT Format$(Target_Date,"mmm-yy") AS [Month Period], Count(Action_Item_Number) AS Count_Items_Committed, Sum(IIF(Status = "Completed"),1,0) AS Count_Completed
FROM [Action Items]
GROUP BY Format$(Target_Date,"mmm-yy")
HAVING Target_Date <> " ";
I keep getting a message saying 'Wrong Number of Arguments Used with query function is expression" and then it shows the SUM(IIF) statement. I checked the [Action Items] table and I have a field called Status.
I am confused again. What am I goofing up here?
SELECT Format$(Target_Date,"mmm-yy") AS [Month Period], Count(Action_Item_Number) AS Count_Items_Committed, Sum(IIF(Status = "Completed"),1,0) AS Count_Completed
FROM [Action Items]
GROUP BY Format$(Target_Date,"mmm-yy")
HAVING Target_Date <> " ";
I keep getting a message saying 'Wrong Number of Arguments Used with query function is expression" and then it shows the SUM(IIF) statement. I checked the [Action Items] table and I have a field called Status.
I am confused again. What am I goofing up here?