Two blank spaces replace missing middle name- how to correct?

P

Peter

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?
 
D

Doug Robbins - Word MVP

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
 

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