View Single Post
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Two blank spaces replace missing middle name- how to correct?

You will need to use an If...then...Else field construction.

{ MERGEFIELD First_Name } { IF { MERGEFIELD Middle_Initial } "" "{
MERGEFIELD Middle_Initial } { MERGEFIELD Last_Name }" "{ MERGEFIELD
Last_Name }" }

You must use Ctrl+F9 to insert each pair of Field Delimiters { } and Alt+F9
to toggle their display.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Peter" wrote in message
...
I'm running Outlook and Word 2003 SP3 under Windows XP Pro SP2. I wish to
perform a "mail merge" using entries from my Outlook Contacts file as
input
into a Word mail merge to Avery address labels. I have almost completely
set
up every thing needed to do this by following mail merge instructions I
located at http://www.gmayor.com/mailmerge_from_outlook.htm.

Among other fields, I wish to include first_name, middle_initial, and
Last_name on line one in my labels. This works great for people in my
Outlook
Contact file that do have a middle_initial. For those people with
no-middle-initial, my labels show two blank spaces between the first and
last
names. I would, of course, like to see just a single such blank space
between
the first and last names of people who do not have a middle initial. Where
can I read how to accomplish this, and I would appreciate detailed
instructions if possible?
--
Peter Sale
Santa Monica CA USA