ms access - Control Source If statement -
i want access automatically calculate output if entered value > 0. put following code in "control source" field of textbox property , giving me error. number should obtained text052 , should output in text054.
here code:
if text052.value > 0 text054.value = val([text052].[value])/2 end if error: "the expression enetered contains invalid syntax". "you have enetered operand without operator"
i not sure how write syntax in control source field of text box propety. please advice.
in control source of text054, try:
=iif([text052] > 0,[text052]/2, "n/a") "n/a" can whatever need, including null.
Comments
Post a Comment