I'm trying to create a query that will select certain information from a table(s). I've added a conditional expression to the "criteria" section of the query that looks like this:
=IIF([Customer]="yes","Customer","")
When I try to run the query, it says that the expression is either typed incorrectly or is too complex to process.
Essentially I want the criteria for my "Branch" field to be "Customer" when the [customer] field = "yes", or "" (null) when the [customer] field = "no".
Am I going about this the wrong way all together using a conditional expression? Should I be using a select statement or something?
Please help!
=IIF([Customer]="yes","Customer","")
When I try to run the query, it says that the expression is either typed incorrectly or is too complex to process.
Essentially I want the criteria for my "Branch" field to be "Customer" when the [customer] field = "yes", or "" (null) when the [customer] field = "no".
Am I going about this the wrong way all together using a conditional expression? Should I be using a select statement or something?
Please help!