Article ID: 189016 - Last Review: October 4, 2002 - Revision: 1.0 WD98: Err Msg: "Fields Are Nested Too Deeply" in Mail MergeThis article was previously published under Q189016 SYMPTOMS
When you use a nested IF field in a Word mail merge, you may receive the
following error message:
Fields are nested too deeply
CAUSE
This behavior is by design of Microsoft Word. Word supports field nesting
only to 20 levels.
WORKAROUND
To work around this problem, use a nested IF field of 20 or fewer levels.
MORE INFORMATION
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 an 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"}
90393
(http://support.microsoft.com/kb/90393/EN-US/
)
WD: How to Use Nested IF Fields in a Print Merge Document
For more information about conditional Word fields, click the Office
Assistant, type nesting if fields, click Search, and then click to view
"Customize documents created with mail merge."
NOTE: If the Assistant is hidden, click the Office Assistant button on the Standard toolbar. If Microsoft Help is not installed on your computer, please see the following article in the Microsoft Knowledge Base: 179216
(http://support.microsoft.com/kb/179216/EN-US/
)
OFF98: How to Use the Microsoft Office Installer Program
| Article Translations
|

Back to the top
