#1   Report Post  
PeterM
 
Posts: n/a
Default MergeField Formatting

I need to be able to display a phone number as (123) 456-7890. The input
field is in an MS Access table as a text field.

When I use
{MERGEFIELD "office" \# "(###) ###-####"} or {MERGEFIELD "office" \# "(000)
000-0000"}

the results are (123) 456 7890....it's missing the dash ("-")

What am I doing wrong? Thanks in advance for your help!
  #2   Report Post  
Greg Maxey
 
Posts: n/a
Default

Peter,

Try: "(###) ###'-'####"

with the hypen bounded wiht '




--
Greg Maxey/Word MVP
A Peer in Peer to Peer Support

PeterM wrote:
I need to be able to display a phone number as (123) 456-7890. The
input field is in an MS Access table as a text field.

When I use
{MERGEFIELD "office" \# "(###) ###-####"} or {MERGEFIELD "office" \#
"(000) 000-0000"}

the results are (123) 456 7890....it's missing the dash ("-")

What am I doing wrong? Thanks in advance for your help!



  #3   Report Post  
PeterM
 
Posts: n/a
Default

Thank you Greg...that worked perfectly!

"Greg Maxey" wrote:

Peter,

Try: "(###) ###'-'####"

with the hypen bounded wiht '




--
Greg Maxey/Word MVP
A Peer in Peer to Peer Support

PeterM wrote:
I need to be able to display a phone number as (123) 456-7890. The
input field is in an MS Access table as a text field.

When I use
{MERGEFIELD "office" \# "(###) ###-####"} or {MERGEFIELD "office" \#
"(000) 000-0000"}

the results are (123) 456 7890....it's missing the dash ("-")

What am I doing wrong? Thanks in advance for your help!




Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
formatting changes when pressing enter OfficeUser_0002 Microsoft Word Help 1 January 16th 05 12:35 AM
Styles & Formatting Help Jim Wood Microsoft Word Help 2 January 11th 05 03:27 AM
Word 2002 "distributed alignment" Direct Formatting RmarshP Microsoft Word Help 3 January 9th 05 05:20 PM
Stopping automatic bullet formatting when formatting is turned off SolcorpianWriter Microsoft Word Help 2 December 23rd 04 06:25 AM
formatting links from excel into word (extra line feeds) JGT Microsoft Word Help 1 December 9th 04 11:01 AM


All times are GMT +1. The time now is 06:56 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"