D
DS
I'm trying to do a nested IIF in a report (see below) to ouput text based on
the value of what is contained in a field called TalkNumber. TalkNumber is a
numeric field. However, Access keeps putting brackets around the text in the
expression and it causes me to get prompted for input. In plain English,
what I'm trying to code into the field is:
If TalkNumber=1, then print "IN" else, If TalkNumber=5, then print "SQ"
else, If Talknumber=6, then print "BH"
Seems simple enough, but Access keeps putting brackets around whatever I
have in quotes. Any suggestions? Below is the actual expression I'm putting
into the field.
=IIf([TalkNumber]=1,â€INâ€,IIf([TalkNumber]=5,"SQ",IIf([TalkNumber]=6,â€Bâ€)))
the value of what is contained in a field called TalkNumber. TalkNumber is a
numeric field. However, Access keeps putting brackets around the text in the
expression and it causes me to get prompted for input. In plain English,
what I'm trying to code into the field is:
If TalkNumber=1, then print "IN" else, If TalkNumber=5, then print "SQ"
else, If Talknumber=6, then print "BH"
Seems simple enough, but Access keeps putting brackets around whatever I
have in quotes. Any suggestions? Below is the actual expression I'm putting
into the field.
=IIf([TalkNumber]=1,â€INâ€,IIf([TalkNumber]=5,"SQ",IIf([TalkNumber]=6,â€Bâ€)))