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 / May 2004

Tip: Looking for answers? Try searching our database.

If then

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David Bateman - 13 May 2004 15:20 GMT
I have a data sourse which includes titles (Dr.).  If  I print envelopes and
that title is blank then I get a space where the title should be which
statement can I use to prevent this? TIA
Dave
Peter Jamieson - 13 May 2004 15:37 GMT
If you have, e.g.

{ MERGEFIELD Title } { MERGEFIELD Lastname }

then you need something like

{ IF "{ MERGEFIELD Title }" = ""  "" "{ MERGEFIELD Title } " }{ MERGEFIELD
Lastname }

If the Title evaluates to a space character within Word you may need
something more like

{ IF "{ MERGEFIELD Title }" = ""  ""
"{ IF "{ MERGEFIELD Title }" = " " ""
"{ MERGEFIELD Title } " }"
"{ MERGEFIELD Title } " }{ MERGEFIELD Lastname }

If you are using ADDRESSBLOCK and are getting spaces where the title should
be, you will need to change so that you use individual fields, as above.
Signature

Peter Jamieson

> I have a data sourse which includes titles (Dr.).  If  I print envelopes and
> that title is blank then I get a space where the title should be which
> statement can I use to prevent this? TIA
> Dave
Graham Mayor - 13 May 2004 17:36 GMT
> I have a data sourse which includes titles (Dr.).  If  I print
> envelopes and that title is blank then I get a space where the title
> should be which statement can I use to prevent this? TIA
> Dave

Use a conditional field to insert the title and its following space eg

{IF {Mergefield Title} <> "" "{Mergefield Title}<put a space here>"}{Put the
next field here without a leading space}

Make sure that the fieldname above matches that in your data.

Signature

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

  Web site www.gmayor.com
 Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<

 
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.