Hi guys,
I'm a bit of a novice at this so bare with me.
I've written a little expression for converting a number to text for a report.
There's two stages to this, I want the 1 to be converted to "PUBLIC" and the 2 to "NON PUBLIC". If i test these two separately, they work fine, but if I join them with an OR, for some reason, i'm getting a result of -1, which makes no sense at all.
could someone point out the obvious error in what i'm doing, as I really don't have a clue!
I'm a bit of a novice at this so bare with me.
I've written a little expression for converting a number to text for a report.
There's two stages to this, I want the 1 to be converted to "PUBLIC" and the 2 to "NON PUBLIC". If i test these two separately, they work fine, but if I join them with an OR, for some reason, i'm getting a result of -1, which makes no sense at all.
could someone point out the obvious error in what i'm doing, as I really don't have a clue!
Code:
expTYPE1: (IIf([chrTYP]="1","PUBLIC",[chrTYP])) Or (IIf([chrTYP]="2","NON PUBLIC",[chrTYP]))