Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Nested iif sum statement in report....

Status
Not open for further replies.

topdesk123

Programmer
Sep 27, 2001
76
0
0
US
I thought I knew how to do this, but apparently I've forgotten.

=(IIf([status2]="Failure","Failure",Null Or IIf([status2]="Success","Success",Null Or IIf([status2]="Illegal","Illegal",Null))))

What am I forgetting?

TIA!
topdesk
 
iif(condition, value if true, iif(condition, value if true, value if false))

How about something like this though:

iif([status2] in ("Failure", "Success", "Illegal"), status2, "")



Leslie

Anything worth doing is a lot more difficult than it's worth - Unknown Induhvidual

Essential reading for anyone working with databases: The Fundamentals of Relational Database Design
 
You are my hero Leslie! Thanks so much!! Have a great day!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top