Anyone have any good examples on how this Sum Function works........
I have 3 text boxes Cost1 and Cost 2 and totalCost....I want to select the prices and sum them up and show the total cost in the total cost textbox....im kinda cloudy on how this is done though any suggestions...........thank you for the help

Sum Function Question
Steve Conklin
Aimee13131
Total = Total +
CType(TextBox1.Text, Decimal) ElseIf TextBox1.Text.Trim.Length = 0 ThenTotal = Total + 0
Elseberror =
True End If If IsNumeric(TextBox2.Text) ThenTotal = Total +
CType(TextBox1.Text, Decimal) ElseIf TextBox2.Text.Trim.Length = 0 ThenTotal = Total + 0
Elseberror =
True End If If berror = True ThenTextBox3.Text =
"Error" ElseTextBox3.Text = Total.ToString
End If End Sub