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!

How do I create a numeric field from a text field....?? 1

Status
Not open for further replies.

Focusfocs

Programmer
May 3, 2004
35
US
Hello All,
I have a question about breaking a number out of a text string and then running a sum of that number. I know how to break out the numeric data, but I'm uncertain how to run a calc on it as it is still in a datatype of text. Can you help?
 
Try CInt() or CDbl() functions to convert that value to the type of numeric you need, then you can do math.

Search on cint in Access Help files for details on how to use these functions.
 
That was exactly what I needed, thank you so much.
 
Often Val is the only function needed.
Just my 2 cents ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top