Microsoft KB Archive/77620

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

Article ID: 77620

Article Last Modified on 11/16/2006

-

APPLIES TO


 * Microsoft Word 97 Standard Edition

-



This article was previously published under Q77620





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 of 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>

Additional query words: recursive

Keywords: kbfield kbnofix kbprb KB77620

-

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

© Microsoft Corporation. All rights reserved.