IIF Statements

S

Steve

I am trying to do write a multiple IIF statement in a TEXT
BOX on a report. Does anyone have an example? mine is not
working for some reason. Here is what I am trying to do:

IIF([5yr]<51,"o","x")

However, if the field is blank I need it indicate this by
placing an "na" on the report

thank you for your help
 
F

fredg

I am trying to do write a multiple IIF statement in a TEXT
BOX on a report. Does anyone have an example? mine is not
working for some reason. Here is what I am trying to do:

IIF([5yr]<51,"o","x")

However, if the field is blank I need it indicate this by
placing an "na" on the report

thank you for your help

=IIf(IsNull([FieldName]),"na",IIf([fieldName]<51,"o","x"))
 

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