Hello:
I am trying to figure out the correct syntax for an IF statement because mine produces incorrect results no matter the placement of the true or false arguments.
Here is the syntax:
iif ( condition, value_if_true, value_if_false )
Here is what I have:
=IIf([txtDiffMatWat]=[TotBW],"Good To Go","There's an Error")
currently, the condition should be true, which should produce "good to go", however, it produces, "there is an error". I changed them around, the true and false parts, and then good to go showed up. I opened the form and then it said, there is an error. Is my syntax correct? If so, why might it be giving the wrong value for the condition?
I am trying to figure out the correct syntax for an IF statement because mine produces incorrect results no matter the placement of the true or false arguments.
Here is the syntax:
iif ( condition, value_if_true, value_if_false )
Here is what I have:
=IIf([txtDiffMatWat]=[TotBW],"Good To Go","There's an Error")
currently, the condition should be true, which should produce "good to go", however, it produces, "there is an error". I changed them around, the true and false parts, and then good to go showed up. I opened the form and then it said, there is an error. Is my syntax correct? If so, why might it be giving the wrong value for the condition?
Comment