I have a textbox called txtSum, which is bound to the field Sum. Therefore, in its property, the control source would be Sum. The value for this textbox is supposed to be the total of two other textbox controls, say txtNum1 and txtNum2. And after user enter the value for these 2 boxes, the txtSum is supposed to show the sum. But how do I do that? I tried to write under
Private Sub txtNum2_afterupdate()
txtSum.Text = txtNum1.Text + txtNum2.Text
End Sub
But i get this error:
You can't reference a property or method for a control unless the control has the focus.
Private Sub txtNum2_afterupdate()
txtSum.Text = txtNum1.Text + txtNum2.Text
End Sub
But i get this error:
You can't reference a property or method for a control unless the control has the focus.