Format Phone Number

J

Jessie

Hello.

I have a phone field formatted:

9995551212 that I have to change to:

(999)555-1212 on fixed width text output. Is there a way I
can do this using a query?

Thanks,
Jessie
 
J

John Vinson

Hello.

I have a phone field formatted:

9995551212 that I have to change to:

(999)555-1212 on fixed width text output. Is there a way I
can do this using a query?

Use the Format() function: put in a calculated field by typing

ExpPhone: Format([phone], "(@@@)@@@-@@@@")

and export the resulting text string.

Note that setting the Format *property* of a field or form/report
control doesn't help with exports - the export software ignores it.
 

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