Microsoft KB Archive/70734

= WD: Using the Lock Result Switch in Word =

Article ID: 70734

Article Last Modified on 11/16/2006

-

APPLIES TO


 * Microsoft Word 1.0 Standard Edition
 * Microsoft Word 1.1 Standard Edition
 * Microsoft Word 1.1 Standard Edition
 * Microsoft Word 2.0 Standard Edition
 * Microsoft Word 2.0a
 * Microsoft Office Word 2003
 * Microsoft Word 2.0c
 * Microsoft Word 6.0 Standard Edition
 * Microsoft Word 6.0a
 * Microsoft Word 6.0c
 * Microsoft Word 95 Standard Edition
 * Microsoft Word 95a
 * Microsoft Word 97 Standard Edition

-



This article was previously published under Q70734



SUMMARY
This article describes the use of the &quot;Lock Results&quot; switch.



MORE INFORMATION
The &quot;Lock Results&quot; 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 &quot;field&quot; 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 &quot;included&quot; 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.

