IIF statement

C

Chris

I use iif statements all of the time but never with more than 1 criteria. I
need to build a statement with a couple of conditions. Here is what my code
looks like:
iif(([Total Sales 2003]),0 and ([Total Sales 2004]),<>0,([Sales % Chg]) =
100%) I just can't seem to get this to work.................Help.

Thanks,
Chris
 
F

fredg

I use iif statements all of the time but never with more than 1 criteria. I
need to build a statement with a couple of conditions. Here is what my code
looks like:
iif(([Total Sales 2003]),0 and ([Total Sales 2004]),<>0,([Sales % Chg]) =
100%) I just can't seem to get this to work.................Help.

Thanks,
Chris

I have no idea what you are trying to do.
Here is generic use of IIf with an AND operator.

=IIf([FieldA] = SomeCriteria and [FieldB] =
OtherCriteria,TruePortion,FalsePortion)
 
D

Darren

Your statement is all messed up. Can't even tell what you are trying to do.

Syntax: IIF(Condition, True Result, False Result)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top