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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

converting html text to float

Status
Not open for further replies.

dcarbone

Programmer
Aug 22, 2003
29
CA
I'm trying to insert a number collect from an HTML text box, into an access database, into a number field...but i always get type mismatch. How can i convert this to a number, because i dont want the field in the database to be text.
 
Variables are variable in ASP so you should just be doing

Insert into tablename (fieldname) Values (" & number & ")"

Just make sure you don't enclose it in apostrophes

 
it is also possible to use cint (type coeresion) it isn't really an int variable but it should work for your purposes.
if memory serves it is just cint(variable)
 
cLng, cDbl, and cDec are also available (as well as several more)

-T

[sub]01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111[/sub]
The never-completed website:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top