Microsoft KB Archive/211644

= WD2000: Cannot Insert Nested Formula with Insert Field Command =

Article ID: 211644

Article Last Modified on 12/6/2000

-

APPLIES TO


 * Microsoft Word 2000 Standard Edition

-



This article was previously published under Q211644





SYMPTOMS
When you attempt to create a field containing nested instructions or multiple switches, the field is not inserted correctly.

For example, if you attempt to create a field similar to the following by adding multiple switches to the EQ field in the Field Options dialog box

{EQ \F({EQ \R},)}

Word inserts the field incorrectly, like this:

{EQ \F \R}



CAUSE
The Field dialog box does not allow recursion or the nesting of multiple instructions or switches. However, you can add additional instructions or switches manually.



WORKAROUND
To work around this behavior, use one of the following methods:

Method 1: Create a Nested Field
For example, to create a nested field similar to

{EQ \F({EQ \R},)}

follow these steps:  On the Insert menu, click Field. In the Categories list, click Equations and Formulas. In the Field Names list, click to select EQ. Click Options. In the Switches list in the Field Options dialog box, select \F and then click Add to Field. Click OK to close the Field Options dialog box. Click OK to close the Field dialog box.

Your inserted field should look similar to the following:

{EQ \F}

NOTE: If you do not see the field, press ALT+F9 to turn on the field codes in your document.

</li> Move the insertion point to the left of the comma inside the parentheses.</li> On the Insert menu, click Field.</li> In the Categories list, click Equations and Formulas. In the Field Names list, click to select EQ.</li> Click Options.</li> In the Switches list in the Field Options dialog box, select \R and then click Add to Field.</li> Click OK to close the Field Options dialog box.</li> Click OK to close the Field dialog box.

Your inserted field should now look similar to the following:

{EQ \F({EQ \R},)}

</li></ol>

Method 2: Use Equation Editor
<ol> On the Insert menu, click Object.</li> Click Create New.</li> In the Object Type list, select Microsoft Equation 3.0 and click OK.</li> On the Equation toolbar, click the Fraction and Radical Templates button.</li> Enter the information you want to use in your formula.</li> When finished, click Exit and Return to   to close Equation Editor. If you see a field code that is similar to the following, press ALT+F9 to turn off the field codes in your document.

{EMBED Equation.3}

</li></ol>

Keywords: kbnofix kbprb kbfield KB211644

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.