View Single Post
  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default If...Then...Else MAILMERGE field not inserting correctly

Toggle the field display (ALT+F9) and tell us what the field construction
really says.

It should look something like
{IF{Mergefield Fieldname} = "3" "True Text" "False Text"}
Is that what you expected? If not what exactly are you testing for?

What appears to be happing here is that you are displaying the field results
(toggle with the ABC button on the merge toolbar) and the value of the
current record is 3.


--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



PK Laird wrote:
I'm trying to use the Insert Word Field If...Then...Else function to
display certain text when the data field contains a certain value.
However, when I insert the function into the document, the field name
becomes the numeral "3." Consequently, it displays that text only
where I have asked it to do so if the value of the record is 3,
because the field code reads { IF 3 = 3 "(true text)" "(false text)"
}. How do I get it to compare the true value to the value of the
merge field I choose?