Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / February 2005

Tip: Looking for answers? Try searching our database.

how do I remove excess spacing between data flelds when using wor.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gene - 05 Feb 2005 17:25 GMT
«Sal» «FirstName» «MI» «LastName» «Suffix» I have excess spacing between the
middle initial and last name when the person does not have a middle initial.
Doug Robbins - 05 Feb 2005 18:17 GMT
Use an If...Then...Else field that returns the MI and the LastName if the MI
exists or just returns the LastName if it does not.

{ IF { MERGEFIELD "MI" } <> "" { MERGEFIELD "MI"} { MERGEFIELD "LastName" }
{ MERGEFIELD "LastName" } }

Use a non-breaking space between { MERGEFIELD "MI"} and { MERGEFIELD
"LastName" } so that it gets treated as the result for the "true" condition.

Signature

Please respond to the Newsgroup for the benefit of others who may be
interested.   Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP

> ?Sal? ?FirstName? ?MI? ?LastName? ?Suffix? I have excess spacing between
> the
> middle initial and last name when the person does not have a middle
> initial.
Graham Mayor - 06 Feb 2005 11:49 GMT
Doug

Given the space is that going to work without the speech marks?

{ IF { MERGEFIELD MI } <> "" "{ MERGEFIELD MI} { MERGEFIELD LastName }" "{
MERGEFIELD LastName }" }

might be better in the circumstances?

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

> Use an If...Then...Else field that returns the MI and the LastName if
> the MI exists or just returns the LastName if it does not.
[quoted text clipped - 12 lines]
>> middle initial and last name when the person does not have a middle
>> initial.
Doug Robbins - 06 Feb 2005 13:18 GMT
Thanks, Graham.  I thought that the non-breaking space might do the trick,
but testing it now, I find that it doesn't.

Signature

Please respond to the Newsgroup for the benefit of others who may be
interested.   Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP

> Doug
>
[quoted text clipped - 21 lines]
>>> middle initial and last name when the person does not have a middle
>>> initial.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.