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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top