G
Guest
Hello,
2 part question....I know how to use a basic IIf statement in a query such
as below:
Dinner:
(IIf([RSVP_CODE]='ACP','Accepted',(IIf([RSVP_CODE]='DCL','Declined'))))
HOWEVER, I don't know how to make it work when I don't want to recognize the
entire RSVP_CODE, say I want to use the same function as above, but for all
entries in RSVP_CODE that just begin with A, I need to show as accepted. I
tried 'A*' but really knowing it wouldn't work because of the ' '. I tried
without ' ' and got an error.
Second part. In addition to statement above, When RSVP_CODE has no value or
entry, I need it to say 'NoResponse'.
I wasn't sure how to search my question, so I don't know if something like
this has previously been asked, if so, my apologies.
Thanks in advance for your help.
-Valerie
2 part question....I know how to use a basic IIf statement in a query such
as below:
Dinner:
(IIf([RSVP_CODE]='ACP','Accepted',(IIf([RSVP_CODE]='DCL','Declined'))))
HOWEVER, I don't know how to make it work when I don't want to recognize the
entire RSVP_CODE, say I want to use the same function as above, but for all
entries in RSVP_CODE that just begin with A, I need to show as accepted. I
tried 'A*' but really knowing it wouldn't work because of the ' '. I tried
without ' ' and got an error.
Second part. In addition to statement above, When RSVP_CODE has no value or
entry, I need it to say 'NoResponse'.
I wasn't sure how to search my question, so I don't know if something like
this has previously been asked, if so, my apologies.
Thanks in advance for your help.
-Valerie