G
Guest
In a query field I want to use syntax IIF x > y, however I want < as a
variable since I want to ask is x>y or is x<y depending on other things.
Storing < or > in a variable would save a lot of code, However I get invalid
syntax if I just use iif [x] [op] [y] where [op] contains the operator - any
ideas?
example: [T_OOH_MID_SIGN] has either < or > in it
IIf(DateDiff('n',Right([E_OPEN_DT],8),[T_OOH_MID_TIME]) [T_OOH_MID_SIGN]
0,1,2)
variable since I want to ask is x>y or is x<y depending on other things.
Storing < or > in a variable would save a lot of code, However I get invalid
syntax if I just use iif [x] [op] [y] where [op] contains the operator - any
ideas?
example: [T_OOH_MID_SIGN] has either < or > in it
IIf(DateDiff('n',Right([E_OPEN_DT],8),[T_OOH_MID_TIME]) [T_OOH_MID_SIGN]
0,1,2)