simple problem... form referencing (1 Viewer)

sha7jpm

Registered User.
Local time
Today, 05:37
Joined
Aug 16, 2002
Messages
205
sorry am sure this is very simple...

I have a textbox with a value (txtvalue)... eg 5.

this box is updated when the user enter another value in a seperate box (txtentry)... eg 20,

the txt value box now will display 20, but I want a running total so it would display 25.

then if the user enters 30, then the total will be 55 etc etc

how do I keep a running total of this ?

I assume I need a third text box to store the 55 value...

many thanks

john
 

Drevlin

Data Demon
Local time
Today, 05:37
Joined
Jul 16, 2002
Messages
135
Private Sub txtEntry_Change()

If isNull(txtValue) or txtValue = "" Then
txtValue = 0
End if

txtValue = txtValue + txtEntry

End Sub


???
Is this what you want to do?
 

Users who are viewing this thread

Top Bottom