G
Guest
I have a text box "totalamt" and a text box "depamt". I would like the
default value of "depamt" to be half of the "totalamt". I attempted on the
after focus event on the totalamt text box to program a statement. However,
since I'm not a programmer it obviously didn't work. This is the statement:
Private Sub TotalAmt_AfterUpdate()
If Me.TotalAmt > "0" Then
Me.DepDue = "[Me.TotalAmt] \ 2"
Else
Me.DepDue = "0"
End If
End Sub
I'm guessing it's my [me.totalamt]/2 that's not working, however, I have no
clue. Can someone help.
Thanks.
default value of "depamt" to be half of the "totalamt". I attempted on the
after focus event on the totalamt text box to program a statement. However,
since I'm not a programmer it obviously didn't work. This is the statement:
Private Sub TotalAmt_AfterUpdate()
If Me.TotalAmt > "0" Then
Me.DepDue = "[Me.TotalAmt] \ 2"
Else
Me.DepDue = "0"
End If
End Sub
I'm guessing it's my [me.totalamt]/2 that's not working, however, I have no
clue. Can someone help.
Thanks.