To add two numeric values from two text boxes and place the answer in a third text box, I use:
Text3.Text = Val(Text1.Text) + Val(Text2.Text) But what if the values of Text1 and Text2 contain a $ sign? For example $50.00 instead of 50.00, this makes it not numeric, but I still need to add them together.
So if Text1.Text contains the string "$50.00" and Text2.Text contains the string "$50.00" what statement do I use in a cmd button to make Text3.Text = "$100.00" when cmd is pressed?
Using Text1.Text = Val(Text2.Text) + Val(Text3.Text) it places a zero in Text3 becuase $ is not numeric.
Is there a statement that will remove the $ before adding the numbers?
-
WebFusion Design
Looking Toward The Future
Text3.Text = Val(Text1.Text) + Val(Text2.Text) But what if the values of Text1 and Text2 contain a $ sign? For example $50.00 instead of 50.00, this makes it not numeric, but I still need to add them together.
So if Text1.Text contains the string "$50.00" and Text2.Text contains the string "$50.00" what statement do I use in a cmd button to make Text3.Text = "$100.00" when cmd is pressed?
Using Text1.Text = Val(Text2.Text) + Val(Text3.Text) it places a zero in Text3 becuase $ is not numeric.
Is there a statement that will remove the $ before adding the numbers?
-
WebFusion Design
Looking Toward The Future