Function to convert TEXT to a STRING

  • Thread starter Andre Laplume via AccessMonster.com
  • Start date
A

Andre Laplume via AccessMonster.com

I know there is a MSAccess function: Cstr(value) that will convert a
numeric field to a text field. What is the function that takes a text
field (that always contains integer values....just stored as text) and
convert it to a numeric field when the make table is run.
 
M

MGFoster

Andre said:
I know there is a MSAccess function: Cstr(value) that will convert a
numeric field to a text field. What is the function that takes a text
field (that always contains integer values....just stored as text) and
convert it to a numeric field when the make table is run.

Try Val() for any number or CInt() for integers or CDbl() for doubles.
 

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