Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Single values entered as text

Status
Not open for further replies.

instructorTek

Instructor
Jun 5, 2006
61
0
0
Hi I make a selection with a combo box and a numeric value (data type single) is entered into a text box. When I try to use the value in the text box in a calculation, it comes out incorrect because it sees the value as a string. Any ideas. e.g. 100 + 100 = 100100
 
Set the format of the textbox to a numeric format. Or use a conversion function, like CInt() to convert the value.

Ken S.
 
As you talked about Single data type I'd use the Val function instead of CInt.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top