Nested IIF statements

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need help writing a nested IIf statement in a report. Logically, it needs
to "read":

If [FieldA]="Thry" OR [FieldB]="X" then print "Hello", else print "Goodbye"

Can someone help?

Jerry
 
I need help writing a nested IIf statement in a report. Logically, it needs
to "read":

If [FieldA]="Thry" OR [FieldB]="X" then print "Hello", else print "Goodbye"

Can someone help?

Jerry


In an Unbound text control:
=IIf([FieldA] = "Thry" Or [FieldB] = "X","Hello","Goodbye")

This is NOT a nested IIf statement.

A nested IIF statement would read like this:
=IIf([field1]= criteria,"Do This",IIf(Field2] = Criteria,"Do That","Do
Something else"))
 
thanks, guess I was making more of it than it was!

Jerry

fredg said:
I need help writing a nested IIf statement in a report. Logically, it needs
to "read":

If [FieldA]="Thry" OR [FieldB]="X" then print "Hello", else print "Goodbye"

Can someone help?

Jerry


In an Unbound text control:
=IIf([FieldA] = "Thry" Or [FieldB] = "X","Hello","Goodbye")

This is NOT a nested IIf statement.

A nested IIF statement would read like this:
=IIf([field1]= criteria,"Do This",IIf(Field2] = Criteria,"Do That","Do
Something else"))
 

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

Similar Threads

IIF statement 2
IIF Statement Help 7
Recordset? 4
nested iif statements in a query 2
If statement..... Possible Match 5
Nested IIf Branches 2
Nested IIf Statement 6
dlookup problem 5

Back
Top