I would like to use the IIF statement to compare two fields in Access query
design view. I would like to compare two fields in a query. I know how to
do it in Access using IF statement (i.e. IF(A1=A2, "Yes","No"). Please tell
me how to write an IIF statement in Access to compare two fields. Thank you.
Regards.
--
Build a little, test a little.
However you have to watch out for nulls.
Debug.Print IIf(Null = Null,"Yes","No") will return No even though they are
both nulls.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
"E-mail report using Lotus Notes rather t" wrote: