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

Criteria and IIF

Status
Not open for further replies.

generaluser

Technical User
May 24, 2002
79
US
Can you do an IIF such as:

If [field2] is not null
Then if [field1] = x and [field2] = y then [field 3]=z.
with multiple values for [field2]

without programming? Would you do it in a query?
Please let me know.
 
if this is on a report then something like this in a text box would work I think:

=iif([field2]<>&quot;&quot;,iif([field1=x],iif([field2=y],[field3]=z)))
 
call me stupid, but I never knew what &quot;<>&quot; meant
 
also, (I forgot), what if [field1] has multiple values as well
 
You figured it out now? Or you still don't know? If you still don't...<> is not equal to
 
Oh I see...I misunderstood at the beginning, so I'm kinda going the wrong way...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top