I am trying to analyze ZIP codes. I need to set the following criteria:
If the first # =
1
or
4
or
Null
Then set the value to the first three numbers of the ZIP code.
If the first number is any other value than these 3 listed, then set the value to 999.
Here is what I'm trying and it is not working - it is setting everything to 999
ZIP3: IIf((Left([zip],1)<>4) Or (Left([zip],1)<>1) Or (IsNull([zip])),999,Left([zip],3))
Thanks for any help!!
If the first # =
1
or
4
or
Null
Then set the value to the first three numbers of the ZIP code.
If the first number is any other value than these 3 listed, then set the value to 999.
Here is what I'm trying and it is not working - it is setting everything to 999
ZIP3: IIf((Left([zip],1)<>4) Or (Left([zip],1)<>1) Or (IsNull([zip])),999,Left([zip],3))
Thanks for any help!!