A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Format for phone number



 
 
Thread Tools Display Modes
  #1  
Old May 27th, 2004, 07:01 PM
Sandy
external usenet poster
 
Posts: n/a
Default Format for phone number

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


  #2  
Old May 27th, 2004, 07:44 PM
hcj
external usenet poster
 
Posts: n/a
Default Format for phone number

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


.

  #3  
Old May 27th, 2004, 08:34 PM
hcj
external usenet poster
 
Posts: n/a
Default Format for phone number

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


.

.

  #4  
Old May 28th, 2004, 01:31 AM
Sandy
external usenet poster
 
Posts: n/a
Default Format for phone number

Thanks you very much.

I'll give it a try.

Sandy
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:29 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.