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

Tip: Looking for answers? Try searching our database.

Mail Merge Blank Lines

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bill - 19 Jan 2004 03:31 GMT
Hi,
Hope someone can help

In a " If Then Else statement:

If (field = "A") OR (field = "B") then
Bill
Else
""
End IF

When the statement is true I want to print "Bill".

Whenever the statement is false I don't want to print
anything.

So in a data source having 5 lines and "Bill" appears
only twice.

I'd like to see:

Bill
Bill

Not:

Blank line
Blank Line
Bill
Blank Line
Bill

What do I do to elimiinate the blank Lines?

Thank you in advance,
Bill
Graham Mayor - 19 Jan 2004 06:38 GMT
You need a nested field including the line feed

{IF {Mergefield Fieldname} = "A" "Bill
" "{IF {Mergefield Fieldname}= "B" "Bill
" ""}"}

looks about right :)

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
    Graham Mayor -  Word MVP
      E-mail gmayor@mvps.org
     Web site www.gmayor.com
 Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>

> Hi,
> Hope someone can help
[quoted text clipped - 32 lines]
> Thank you in advance,
> Bill
 
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.