View Single Post
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Dave C Dave C is offline
external usenet poster
 
Posts: 12
Default Surpress Blank Line

I've looked through other posts but can't find a specific reference to what I
need to achieve - sorry if I missed it.

I have an if statement that prints different text dependant upon the value
in a merge field - see below

{IF {MERGEFIELD COURSE_ID \*UPPER} = "JDP106" "We now wish you luck with
your JDP Part 2 Activities." "{IF {MERGEFIELD COURSE_ID \*UPPER} = "JDP011"
"We now wish you luck with your JDP Part 1 Activities." "" }}

The "We now wish ........" is the only content of the line (25); my problem
is that there is a third potential value (JDP206) in the merge field where I
don't need to print anything and, in this case, need what is normally printed
on line 27 to be printed on line 25 instead. Please see the following
examples of the current and desired situation
.................................................. ..................................................
Current Example - Print from if statement

Thank you for all the hard work ........ (line 23)

We now wish you luck with your JDP Part 2 Activities. (line 25)

Once again many congratulations. (line 27)

.................................................. ..................................................
Current Example - Nothing to print from if statement

Thank you for all the hard work .......... (line 23)



Once again many congratulations. (line 27)

.................................................. ..................................................
Desired Example - Nothing to print from if statement

Thank you for all the hard work .......... (line 23)

Once again many congratulations. (line 25)

.................................................. ..................................................

Thanks in advance for any help/solutions that are offered.

Dave