Format for phone number

G

Guest

Hello

I have a table with a phone column having a 999999-9999 format.

I need (999)999-9999 or at least even a 999 999-9999

Any help will be greatly appreciated

Sand
 
H

hcj

if all your numbers are formed as indicated, make an
update query with the phone number field updated to "(" &
Left([yourphonenumfield],3) & ") " & Right
([yourphonenumfield],8)

SAVE A SAFETY COPY of your original table before running
the update query on it. If you don't get the update
string correct you'll lose the original data, perhaps
irretrieveably.
Hope this helps.
 
H

hcj

forgot to mention - make sure your phone number field is
big enough to hold the newly formatted string. The
original strings are 11 chars; the new ones will be 14.
-----Original Message-----
if all your numbers are formed as indicated, make an
update query with the phone number field updated to "(" &
Left([yourphonenumfield],3) & ") " & Right
([yourphonenumfield],8)

SAVE A SAFETY COPY of your original table before running
the update query on it. If you don't get the update
string correct you'll lose the original data, perhaps
irretrieveably.
Hope this helps.
-----Original Message-----
Hello:

I have a table with a phone column having a 999999-9999 format.

I need (999)999-9999 or at least even a 999 999-9999.

Any help will be greatly appreciated!

Sandy


.
.
 

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