Convet Text to Num

  • Thread starter Thread starter Chris Savedge
  • Start date Start date
C

Chris Savedge

I have a text field that I would like to convert to a number. Can someone
tell me what the syntax for this would be.

Thanks,
Chris
 
Depending on what type of number, you can use the
following functions:

CDbl(text_field) - converts it to a double type
CInt(text_field) - converts it to an integer type
CLng(text_field) - converts it to a long integer type
CSng(text_field) - converts it to a single type

Regards,
Jen
 
Thanks a lot.

Jen said:
Depending on what type of number, you can use the
following functions:

CDbl(text_field) - converts it to a double type
CInt(text_field) - converts it to an integer type
CLng(text_field) - converts it to a long integer type
CSng(text_field) - converts it to a single type

Regards,
Jen
 
Back
Top