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

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -