G
Guest
Hi,
data = Year-1 is an amount or "N/A"
data = S1 is the sign +,-, or blank for N/A
I am trying to get around an error condition which comes up when I divide my
amount by 100 to get cents on my table. I separated the sign from the
amount. I made a query to try to get around this error because I need that
"N/A" to appear, if S1 is not a + or -. This is what my field line is on my
query
Yr-1: IIf([S1]="+",[Year-1]*1/100,IIf([S1]="-",[YEAR-1]*-1/100,"N/A"))
Why doesn't it default to N/A when the other 2 condition are false? Instead
I get #ERROR
Help please
data = Year-1 is an amount or "N/A"
data = S1 is the sign +,-, or blank for N/A
I am trying to get around an error condition which comes up when I divide my
amount by 100 to get cents on my table. I separated the sign from the
amount. I made a query to try to get around this error because I need that
"N/A" to appear, if S1 is not a + or -. This is what my field line is on my
query
Yr-1: IIf([S1]="+",[Year-1]*1/100,IIf([S1]="-",[YEAR-1]*-1/100,"N/A"))
Why doesn't it default to N/A when the other 2 condition are false? Instead
I get #ERROR
Help please