oxicottin
Learning by pecking away....
- Local time
- Today, 17:16
- Joined
- Jun 26, 2007
- Messages
- 891
Hello, I have two txt boxes (txtHomeSold) and (txtHomeInvNumber) on a form and I want to be able to subtract from one another. each text box is bound to a field so I need to use the AfterUpdate event. I tried using:
which works but it gives a - in front of the number and if I enter 0 it changes the txtHomeInvNumber to zero as well? I just want to be able to subtract each other. I included a sample. Please help.
Code:
Private Sub txtHomeSold_AfterUpdate()
Me.txtHomeInvNumber = -(txtHomeSold)
End Sub