Creating a Conditional Page in a Mail Merge Doc

G

George Sikora

I would like to create a conditional mail merge doc in
Word 2000.

I need a doc that contains a first page that always prints
for the current record, and contains a second page that
only prints when the data meets a certain condition.

An example of this could be US Tax form completion.
If you enter filing status 1040 EZ in a field, only print
page 1 (form 1040 EZ).
If you enter filing status 1040 in the same field, print
page 1 (form 1040 EZ) & page 2 (Schedule A/B).

Can this be done in Word 200 & above?

George Sikora
 
C

Cindy Meister -WordMVP-

Hi George,

Basically you need to use an IF field. And the entire second
page can be within that field. The easiest way to go about
this is to put "quotes" at the beginning and end of the
conditional material, select it all, then press Ctrl+F9 to
put it in field brackets.

Now go to the front of the field and insert the "IF"
information. Roughly:

{ IF { Mergefield X } = "ABC" "Your page is here" }

Note that you can insert the mergefield as you normally
would.

Press Alt+F9 to toggle from the field code view to the field
results.
I would like to create a conditional mail merge doc in
Word 2000.

I need a doc that contains a first page that always prints
for the current record, and contains a second page that
only prints when the data meets a certain condition.

An example of this could be US Tax form completion.
If you enter filing status 1040 EZ in a field, only print
page 1 (form 1040 EZ).
If you enter filing status 1040 in the same field, print
page 1 (form 1040 EZ) & page 2 (Schedule A/B).

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jan
24 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any follow
question or reply in the newsgroup and not by e-mail :)
 
G

George Sikora

Hello Cindi,

Thanks for your advice. That worked very well.

One last question about this. When the condition = False,
it is sending a blank page to the printer. I have tried
placing the page break in a number of places but cant find
the right place. Any ideas?

George Sikora
 
G

Graham Mayor

The page break goes in the field result so that it only occurs when the
result is true.
{ IF { Mergefield X } = "ABC" "Your page is here - and the page break!" }

--
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP
E-mail (e-mail address removed)
Web site www.gmayor.dsl.pipex.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
 

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