Telephone Format

D

DS

I'm storing telephone numbers as text.
I want to display that telephone number on an unbound form in an unbound
textbox.
So in the format of the textbox I put (000) 000-0000
However it's not formatting.
Any suggestions welcomed.
Thanks
DS
 
K

Ken Warthen

DS,

Use an Input Mask instead of format. Open your form in design view. Click
on the control in question. Open the properties sheet to the Data tab. Just
below Text Format is Input Mask. Click on the ellipsis button and you'll see
how to set up the input mask for a telephone number.

Ken Warthen
 
M

Marshall Barton

DS said:
I'm storing telephone numbers as text.
I want to display that telephone number on an unbound form in an unbound
textbox.
So in the format of the textbox I put (000) 000-0000
However it's not formatting.


Text fields can not be formatted using number format codes.

As long as the field only contains digits, you can use:
(@@@) @@@-@@@@

If the field might contain space, parens and/or dashes, then
use the Replace function to remove them.
 

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