View Single Post
  #1   Report Post  
fredsin fredsin is offline
Junior Member
 
Posts: 0
Default merge fields at bottom of document causing two pages

Hello,

I need to include a series of IF statements at the bottom of a letter that inserts text based on a change in value for a mergefield.

For example, if the mergefieldAppeal=Running event, I want the text to read "Running event tax deduction is $10." And if is doesn't, nothing. If the mergefieldAppeal= Walking Event, I want the text to read "Walking event tax deduction is $20." If it doesn't, nothing. And on and on.

I want to add an unlimited number of these statements at the end of the letter, because we have many events. When the event that satisfies the IF statement is present as the Appeal, the text will appear for that event. So I have a string of IF statements like this:

{IF{MERGEFIELD Appeal_Descrition}="Running Event" "Running event tax deduction is $10" ""}{IF{Mergefield Appeal_Description}="Walking Event" "Walking event tax decution is $20" ""}...and on....

This works just fine in placing the proper text on the change of the mergefield value, but since the merge strings run over onto the next page, Word is spitting out a two page document instead of consolidating it onto one. The placement of the merged text is just fine....but it still creates lines that run onto a second page. How do I avoid those extra lines from generating in the merged document? I've looked all over the web for an answer, but have yet to find one that addresses this particular type of spacing issue.

Many thanks in advance for your help.