IIf within Query - problem

papasmurfuo9

Registered User.
Local time
Yesterday, 23:48
Joined
May 28, 2014
Messages
69
Hi

in my query i have multiple tables,

one table just has one field called product thats joined to another table

the other table displays a list of all products, if the product is in the other table
i want a "X" to display in that field

both columns are text

the IF im using is,

IIf([Product] Is Null,"","X")

but when i run this, it displays no records what so ever,
if i take out that iff, it displays all records i want, but that field is the product number when i need an X

thank you
 
Are you putting that in the criteria line? that is the only reason there should be no records

Other than that the IIF should be valid?
 
Hi Yes in the criteria line
 
got you, put it in the field line and it works, thanks :}

Product : IIf([Tbl_MMP]![Product] Is Null,"","X")
 
Dont put it in the criteria line then, but in the select line / field line / top line
 

Users who are viewing this thread

Back
Top Bottom