Convert number to text

G

Guest

I need a simple method of linking a number field in a query to a text field
from a table (that I can't change). I know there is a Val function to
convert text to a number. Is there an equivalent function the other way -
number to text?
 
J

John Vinson

I need a simple method of linking a number field in a query to a text field
from a table (that I can't change). I know there is a Val function to
convert text to a number. Is there an equivalent function the other way -
number to text?

Format(fieldname, "formatstring") probably; or CStr(fieldname) if your
text field is in the standard format for numbers defined in your
database properties.

It's not quite clear what is in your text field. If it's "Two hundred
and thirty-three dollars and forty-two cents" it'll be a lot harder
than if it's "$233.42".

John W. Vinson[MVP]
 

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