query to check if a certain field contains certain value, and return "yes" or "no"

G

Guest

If I wanted to check if a certain field contains certain value, and return
"yes" or "no", what would be the appropriate query?
 
R

Rick Brandt

IIf() does a True/False test and returns one value when True and another when
False. That would seem to fit perfectly with your request.

IIf([SomeField]=SomeValue, "Yes", "No")
 
Top