Hi =?Utf-8?B?SnVsaWUgRGVDYW5kaWE=?=,
How do I include an additional page to the main merge document if certain conditions
apply? I have constructed an if statement to say that if a condition is met to insert
the additional page if not do nothing. But I keep getting an additional blank page added
to each record that does not meet the condition.
ex:
{ IF "{MERGEFIELD AidID }" = "Scholarship" { INCLUDETEXT "C:\\mydocs\\scholarship.doc" \* MERGEFORMAT }" "" }
Have you tested this by using "plain text" entries instead of the IncludeText field, just
to be sure it's not a problem with the true/false condition? Which version of Word are we
dealing with?
Note that one should usually turn this around:
{ IncludeText "C:\\mydocs\\scholarship.doc" { IF { mergefield AidID } = Scholarship
"BookmarkNameWithPage" "BookmarknameNoContent" } }
Word has a tendency to update fields from the inside out, which can give odd results with
IF fields under these circumstances.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or reply in the
newsgroup and not by e-mail