You're right,
That's what I get for not testing my solutions first...
anyway, try this:
Dim CBox1 As Integer
Dim CBox2 As Integer
Dim Cbox3 As Integer
Private Sub ComboBox1_Change()
CBox1 = ComboBox1.Value
TextBox1.Value = CBox1
TextBox4.Value = CBox1 + CBox2 + Cbox3
End Sub
Private Sub ComboBox2_Change()
CBox2 = ComboBox2.Value
TextBox2.Value = CBox2
TextBox4.Value = CBox1 + CBox2 + Cbox3
End Sub
Private Sub ComboBox3_Change()
Cbox3 = ComboBox3.Value
TextBox3 = Cbox3
TextBox4.Value = CBox1 + CBox2 + Cbox3
End Sub
Textbox4 is the totals box. The problem was, the text boxes were holding thir values as text, and not numbers, so + was concatenating instead of summing.
Any troubles, I'll e-mail the file I just did.
HTH,
Corticus
edit: you can format the textboxes for numbers without using variables like I did, but I couldn't get it to work. This way does.
This message was edited by Corticus on 2002-11-07 08:34