Microsoft KB Archive/193768

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

Article ID: 193768

Article Last Modified on 10/4/2002

-

APPLIES TO


 * Microsoft Word 98 for Macintosh

-



This article was previously published under Q193768





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 OPTION+F9 to turn on 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> In the Object Type list, select Microsoft Equation 2.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 the Close button (the square in the upper-left corner of the Equation window) to close Equation Editor. If you see a field code that is similar to the following, press OPTION+F9 to turn off field codes in your document.

{EMBED Equation.2}

</li></ol>

Keywords: kbprb KB193768

-

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

© Microsoft Corporation. All rights reserved.