K
kev100 via AccessMonster.com
I'm needing a text box to display the value of Field 1...IF the value of the
field is either "BLUE" or GREEN"
If the value of Field 1 is NOT either of these.....it needs to display the
value of Field2.
I've tried:
=IIf([Field1]="BLUE" Or "GREEN",[Field1],[Field2]) --- this will simply
mirror Field1...no matter what its value.
=IIf([Field1]=("BLUE" Or "GREEN"),[Field1],[Field2]) --- this will error out
=IIf([Field1]="BLUE",[Field1],[Field2]) ---- tried this as a test...it works
fine....but only considers the "BLUE" condidtion.
Something about putting in an OR complicates things.....can OR be used at all?
Thanks very much.
field is either "BLUE" or GREEN"
If the value of Field 1 is NOT either of these.....it needs to display the
value of Field2.
I've tried:
=IIf([Field1]="BLUE" Or "GREEN",[Field1],[Field2]) --- this will simply
mirror Field1...no matter what its value.
=IIf([Field1]=("BLUE" Or "GREEN"),[Field1],[Field2]) --- this will error out
=IIf([Field1]="BLUE",[Field1],[Field2]) ---- tried this as a test...it works
fine....but only considers the "BLUE" condidtion.
Something about putting in an OR complicates things.....can OR be used at all?
Thanks very much.