M
Mary O
I'm trying to formulate an if/then statement in a query and it returns with
error as the value.
I've a calculated expression as Expr2:
Expr2: First(([SumOfACREAGE]*10)*([% PMT]))
which returns a value. This part works well. It returns a dollar value.
I then use that Expr2 in another query in an IIf statement:
Expr7: IIf([Expr2]<"1000","Expr2","1000")
I want it to return a value of 1000 if the value of Expr2 is greater than
1000, and Expr2 if the value is less than 1000. It's not working. I've
tried adding .00 to the 1000 because Expr2 is a dollar value, but neither
works.
Can anyone help please?
Thanks.
error as the value.
I've a calculated expression as Expr2:
Expr2: First(([SumOfACREAGE]*10)*([% PMT]))
which returns a value. This part works well. It returns a dollar value.
I then use that Expr2 in another query in an IIf statement:
Expr7: IIf([Expr2]<"1000","Expr2","1000")
I want it to return a value of 1000 if the value of Expr2 is greater than
1000, and Expr2 if the value is less than 1000. It's not working. I've
tried adding .00 to the 1000 because Expr2 is a dollar value, but neither
works.
Can anyone help please?
Thanks.