Error using iif in ms access query
Posted
by
naveen
on Stack Overflow
See other posts from Stack Overflow
or by naveen
Published on 2012-11-21T10:27:54Z
Indexed on
2012/11/21
11:01 UTC
Read the original article
Hit count: 199
I am trying to fire this query in MS Access
SELECT file_number,
IIF(invoice_type='Spent on Coding',SUM(CINT(invoice_amount)), 0) as CodingExpense
FROM invoice
GROUP BY file_number
I am getting this error
Error in list of function arguments: '=' not recognized. Unable to parse query text.
I tried replacing IIF
with SWITCH
to no avail.
What's wrong with my query and how to correct this?
© Stack Overflow or respective owner