title: Control Source If statement
body: <p>I want access to automatically calculate the output if the entered value is > 0. So I put the following code in the "Control Source" field of a textbox property and it is giving me an error. The Number should be obtained from Text052 and it should output it in Text054.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>If Text052.value &gt; 0 then
  Text054.value = Val([Text052].[Value])/2
  end if
  </code></pre>
  
  <p>Error: "The expression you enetered contains invalid syntax". 
         "You have enetered the operand without the operator"</p>
  
  <p>I am not sure how to write the syntax in the control source field of the text box propety.
  Please advice.</p>