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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Iff (w/ or) statement not working, tips?

Status
Not open for further replies.

3Mark3

Technical User
Nov 30, 2005
48
US
I have an iif statement that I'm not doing right. Can someone correct this? Thank you!


F5: IIf([Welc_AK20060328]![Field5]="000" Or "TX75087000","good","Not good")

right now it just returns all "good"...even though there are all kinds of different data.
 
What are you comparing "TX75087000" to?

IIf([Welc_AK20060328]![Field5]="000" Or [Welc_AK20060328]![Field?]="TX75087000","good","Not good")
 
Or you could try something like:
Code:
IIf([Welc_AK20060328]![Field5] in ("000","TX75087000"),"good","Not good")

if you're looking for various values in a single field.
 
Ahh...excellent, thank you for the quick response!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top