Hi
I assume the slashes, parenthesis, dashes, etc are actually in the text of
the field and that its not so much the
format that you want to change but the but the content.
Look at the replace function in the Access VBA help function.
Create an update query and using the replace function Get rid of all of the
characters other than numerals.
Update to: Replace(TelNo,"-","") 'This gets rid of all the dashes in the
records that have them.
Do the same for the other characters.
You'll be left with 10 digit numeric strings.
If you want to include the actual characters in your data you can do another
update query to put them in.
You can then put in the characters that you want where you want them with
something like:
Update to: "(" & left(TelNo,3) & ") " & mid(TelNo)4,4) & "-" &
right(TelNo,4)
That would yield (781) 678-9807.
Regards
Kevin
"Pat_RI" <pa********@zzcox.netwrote in message
news:xq*****************@newsfe18.lga...
>I need to reformat a cell that contains telephone numbers to a format of
(###) ###-#### but the original cells have various symbols such as / . - \
() etc is there a way to replace all of these symbols and then reformat
accordingly?
Examples of what needs to be corrected:
555-555-1212
555/555-1212
(555)5551212
555.555.1212
555\555\1212
I want them to end up all looking like (555) 555-1212 in my query results.
Thanks,
P.