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!

iif([Animals]![pet] in ("dog","cat") doesn't understand [An

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
(follow-up posting did not work. Trying a new post)

=iif([Animals]![pet] in("dog","cat"),[Animals]![pet],"")

Thanks AWithers, , but...Hrm... when I do that, then execute the report,
I get a pop-up Window:


==========================================
Enter Parameter Value

Animals: |____________________

OK CANCEL
==========================================

What's the deal? Does it not recognize the table name?
I have verified I spelled it
right.
 
I tried doing the same thing - can you view your code in SQL - maybe then you could see the difference.

SELECT animals.*, IIf([animals].[pet] In ("Cat","Dog"),[animals].[pet],"") AS Expr1
FROM animals;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top