WD: Using the Lock Result Switch in Word

Last reviewed: September 2, 1997
Article ID: Q70734
The information in this article applies to:
  • Microsoft Word for Windows versions 1.0, 1.1, 1.1a, 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c, 6.0, 6.0a, 6.0c
  • Microsoft Word for Windows 95, versions 7.0, 7.0a
  • Microsoft Word 97 for Windows

SUMMARY

This article describes the use of the "Lock Results" switch.

MORE INFORMATION

The "Lock Results" switch prevents fields that are part of a result from being updated. The lock result switch is represented by the exclamation point, and can be used in a field as follows:

   {field \!}

where "field" is the field type. This switch locks the results of a field in an included file from being updated to the results of the main file. This is useful in situations where a file included in a main document contains fields that would have different results in the main document. These document-specific fields include TITLE, FILENAME, KEYWORDS, COMMENTS, and SEQ fields.

When you include a document containing these fields in a main document, these fields display the information associated with the main document rather than the included file where you insert them. If the INCLUDE FILENAME field in the main document contains the lock result switch (that is, {include filename \!}), then the results of these fields reflect the information associated with the included file. These secondary "included" fields are locked, or associated only with the included document when the lock result switch is added to the include field in the main document.

Note: This switch does not prevent all fields from updating. The INCLUDE field still updates in the main document, as do the TIME, DATE, and equations fields. The switch only locks field results that are specific to a particular document.

REFERENCES

"Microsoft Word for Windows User's Reference," page 119

"Microsoft Word for Windows Technical Reference," page 145

"Microsoft Word for Windows and OS/2 Technical Reference," page 334


KBCategory: kbusage
KBSubcategory: kbfield
Additional query words: statistics winword word6 winword word7
6.0a 6.0c 7.0 word95 1.x 2.x 6.0 6.0a 6.0c winword2 word97
Keywords : kbfield
Version : 1.x 2.x 6.0 6.0a 6.0c 7.0 7.
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 2, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.