Convert a number to text - where is the text function

D

Dave

I want to convert a number to text. I searched the help files and found a
text function. However I am not able to find the function.

How do I install missing functions?

Thanks

Dave
 
J

John Viescas

Use CStr or concatenate the number with an empty string:

MyNumberToText: CStr(MyNumber)

or

MyNumberToText: MyNumber & ""

--
John Viescas, author
"Microsoft Office Access 2003 Inside Out" (coming soon)
"Running Microsoft Access 2000"
"SQL Queries for Mere Mortals"
http://www.viescas.com/
(Microsoft Access MVP since 1993)
 
J

John Viescas

Ah! Well, if you're using Access 2000, Help is useless. It lists all the
Excel functions, but few, if any, of them are available in Access. What you
want is the Format function.

Format([MyNumber], "$0.99")

You shouls also be able to look up the Format function in Help. You can do
all sorts of creative things with number formatting, similar to the Text
function in Excel.

--
John Viescas, author
"Microsoft Office Access 2003 Inside Out" (coming soon)
"Running Microsoft Access 2000"
"SQL Queries for Mere Mortals"
http://www.viescas.com/
(Microsoft Access MVP since 1993)
 

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