ID: Q78935
The information in this article applies to:
In Microsoft Word for Windows, using an IF statement in a field removes the numeric value that is created by a nested AUTONUM field. In Word 7.x and 97 you get the following error message instead of no result:
Error! Unknown Op code for conditional.
This problem also occurs if you nest an INCLUDE field within an IF statement and the included file contains AUTONUM fields. You cannot change this behavior because the IF field evaluation always produces the result text. All nested fields are evaluated, and nested field instructions are not preserved.
1. Press CTRL+F9 to insert the field braces.
2. Type "if 1 = 1" (without the quotation marks). From the Insert
menu, choose Field, and select Auto No. Choose the OK button.
3. Insert quotation marks around the nested AUTONUM field. The
completed field should appear as follows:
{if 1 = 1 "{autonum}"}
4. Select the entire field, and press F9. If field codes are
displaying, press SHIFT+F9 to display the field results. This field
returns no result.
Microsoft is researching this problem and will post new information here as it becomes available.
KBCategory: kbusage KBSubcategory: kbfield Additional query words: gone missing numbers 2.0 6.0 6.0a 6.0c winword 7.0 word95 word6 2.0a 2.0b 2.0a-CD winword2 word7 word97
Keywords : kbualink97 kbusage kbfield
Version : 2.x 6.0 6.0a 6.0c 7.0 7.0a
Platform : WINDOWS
Last Reviewed: February 6, 1998