View Single Post
  #1  
Old June 11th, 2004, 03:01 AM
external usenet poster
 
Posts: n/a
Default includetext, link, or something that keeps headers

I'm trying to do a mail merge that occasionally requires the inclusion of
other documents under certain conditions. For instance, when I merge
records 1, 2, and 3 into DocA, my code in DocA detects a certain condition
in record 2 which requires the inclusion of DocB for that record. My code:
{if {MERGEFIELD iCodeFK}="2" {INCLUDETEXT "\\\\webserver\\\c$\\\DocB.doc"}}

While this code includes the text of DocB, it doesn't include DocB's headers
and footers. Only DocA's headers and footers remain throughout my new
document. Any thoughts on how I can get DocB's headers and footers to be
included for that document and still retain the headers and footers for the
DocA documents? Thanks.