WD2000: Err Msg: "Fields Are Nested Too Deeply" in Mail MergeID: Q220250
|
When you use a nested IF field in a Word mail merge main document, the following error message may appear:
NOTE: This error message may also occur when you use an INCLUDETEXT field as part of a mail merge main document to insert (include) a document containing a nested IF field, even when the nested IF field does not contain more than 20 levels.Fields are nested too deeply
This functionality is by design. Word supports field nesting only to 20 levels.
NOTE: If you use an INCLUDETEXT field to insert a subdocument (containing nested IF fields) in a mail merge main document, the nested IF fields are nested several levels deeper than you may expect and may result in the error message described in the "Symptoms" section of this article.
To work around this problem, do one of the following:
IF (If...Then...Else...) fields print information only if a condition you've specified is met. For example, you can use an IF field to create a form letter that goes only to clients who live within a particular ZIP Code area.
IF fields perform one of two alternative actions, depending on a condition you specify. For example, the statement "If the weather is sunny, we'll go to the park; if not, we'll go to the movies" specifies a condition that must be met (sunny weather) for a certain action to take place (going to the park). If the condition is not met, an alternative action occurs (going to the movies).
The following is one example of nesting MERGEFIELD fields 20 levels deep:
{IF {MERGEFIELD FIELD1} <> "" "{IF {MERGEFIELD FIELD2} <> "" "{IF
{MERGEFIELD FIELD3} <> "" "{IF {MERGEFIELD FIELD4} <> "" "{IF
{MERGEFIELD FIELD5} <> "" "{IF {MERGEFIELD FIELD6} <> "" "{IF
{MERGEFIELD FIELD7} <> "" "{IF {MERGEFIELD FIELD8} <> "" "{IF
{MERGEFIELD FIELD9} <> "" "{IF {MERGEFIELD FIELD10} <> "" "{IF
{MERGEFIELD FIELD11} <> "" "{IF {MERGEFIELD FIELD12} <> "" {IF
{MERGEFIELD FIELD13} <> "" "{IF {MERGEFIELD FIELD14} <> "" "{IF
{MERGEFIELD FIELD15} <> "" "{IF {MERGEFIELD FIELD16} <> "" "{IF
{MERGEFIELD FIELD17} <> "" "{IF {MERGEFIELD FIELD18} <> "" "{IF
{MERGEFIELD FIELD19} <> "" "{IF {MERGEFIELD FIELD20} <> "" "True"
"False"}" "False"}" "False"}" "False"}" "False"}" "False"}" "False"}"
"False"}" "False"}" "False"}" "False"}" "False"}" "False"}" "False"}"
"False"}" "False"}" "False"}" "False"}" "False"}" "False"}
Additional query words: mailmerge printmerge
Keywords : kbdta wd2000
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: May 13, 1999