Calculate the new values for subtotal, tax, and total and put them in whatever control displays the values
txtSubtotal.text = subtotal
or lblTax.caption = tax
WaltP
Posting Sage w/ dash of thyme
10,507 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
We don't bump here.
The reason I haven't answered is your comments were nonsense based on my previous post:
That just multiplies the first input by two.
And your following question makes no sense for anyone with 2nd grade math:How can it add new items inputed from the user in the textbox to the labels? So lets say i put in 35, it will show subtotal of 35, tax of 1.05, shipping 15, and total of 51.05. Now if i put in another number like 40 I would want it to add it to the subtotal, tax, and total of the first.
Use the + sign somewhere in your code to add the new values to the old values.
WaltP
Posting Sage w/ dash of thyme
10,507 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
And I don't understand what your problem is.
You have all the values accessible.
You know how to convert a control's text field into a value.
You know how to add two values.
You know how to load a value into a control's text field.
Clearly you are having a specific problem that your general description does not address.
WaltP
Posting Sage w/ dash of thyme
10,507 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944