Convet Text to Num

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
 
J

Jen

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
 
C

Chris Savedge

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
 
Top