How do I convert a string to a numeric value in Access?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to pull information from a SQL database to do some statistical
analysis. The number I want to work with is in the databas as a varchar. I
am trying to add an expression to my query that will give me the average of
the information in the field. I am not sure how to get the string value into
a numeric form.
 
Use CDbl([MyField]) to convert to a Double (real), or CLng() to convert to
long (32-bit).
 

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

Back
Top