View Single Post
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Lurkette Lurkette is offline
external usenet poster
 
Posts: 2
Default IF Statements in Mail Merge

I am having difficulties with creating an If statement within a Mail Merge
document. I have looked at a number of threads to find out how to construct
the statement and a number of articles on the web but still I cannot generate
the correct response. I am trying to extract information from Excel. If the
Excel cell = "NoInfo" then the Word field should be " " otherwise merge the
field from Excel into Word. I seem to be having problems with the spacing in
my statements, but whenever I have followed the examples my statement does
not work. I have tried both inserting a field and typing the statement &
then Ctrl F9, but still no success. I have tried numerous combinations of
spacing according to the examples but to no avail.
Can anyone help?
IF {MERGEFIELDBOAT_NAME1} = "NoInfo" " "{ MERGEFIELD BOAT_NAME1 }"