WD97: Incorrect Results Using Backslash in Conditional MergeID: Q176620
|
When you use a conditional MERGEFIELD for a result that includes quotation
marks, the result of the field will contain a backslash.
For example, if you have the following conditional statement in your mail
merge main document which uses backslashes to have quotation marks appear
in the result of a true condition for a record
{IF {MERGEFIELD name} = "Jo Brown" "\"Now is the time...\"" "false
condition"}
"Now is the time...\"
To work around this problem, use a unique character in place of the
quotation mark. After the merge is completed, use the Replace command to
search for the unique character and replace it with a quotation mark. (Note
that the character you choose should not occur elsewhere in your document.)
{IF {MERGEFIELD name} = "Jo Brown" "#Now is the time...#" "false
condition"}
After the merge is completed, follow these steps to replace the pound sign
with a quotation mark:
For additional information about this issue, please see the following
article in the Microsoft Knowledge Base:
Q197840 WD97: Certain Characters Do Not Display in Field Result
Additional query words: quote mail merge else print condition
Keywords : kbfield word97 kbmerge
Version : WINDOWS:97
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: April 8, 1999