Adding up values in a textbox on a form

  • Thread starter Thread starter Rhema
  • Start date Start date
R

Rhema

I have a data entry form with 3 textboxes for user input.
I want to add up the values from the 3 textboxes, and display the total
in a new textbox. As the user makes changes, I want the Total textbox
to update automatically.
Can anyone help me with this?

Thanks
 
Rhema,

What's in the textbox is stored as a string by default.

You have to convert them to values before you do any
arithmetic with them.

like:
TextBox3.Value= Val(TextBox1.Value) + Val(TextBox2.Value)

John
 
Back
Top