Fields are used as placeholders for data that might change in a document and for creating form letters and labels in mail-merge documents.
Microsoft Word inserts fields when you use particular commands, such as the Date and Time command on the Insert menu. You can also manually insert your own fields by using the Field command on the Insert menu.
Security Because field codes can be visible to anyone reading your document, be sure that the information you place in field codes is not information that you want kept private.
Common uses for fields
You might insert a field if you want to:
- Display information about a document such as the author's name, the file size, or the number of pages. To do so, use the AUTHOR, FILESIZE, NUMPAGES, or DOCPROPERTY field.
- Add, subtract, or perform other calculations. To do so, use the = (Formula) field.
- Work with documents in a mail merge. For example, insert ASK and FILLIN fields to display a prompt as Word merges each data record (data record: A complete set of related information that corresponds to one row of information in the data source. All information about one client in a client mailing list is an example of a data record.) with the main document.
In other cases, it's simpler to use the commands and options provided in Word to add the information you want. For example, you can insert a hyperlink (hyperlink: Colored and underlined text or a graphic that you click to go to a file, a location in a file, a Web page on the World Wide Web, or a Web page on an intranet. Hyperlinks can also go to newsgroups and to Gopher, Telnet, and FTP sites.) by using the HYPERLINK field, but it's easier to use the Hyperlink command on the Insert menu.
Examples
Contact: {DOCPROPERTY "Manager" \* Upper }
In this example:
If the name of the Manager specified on the Summary tab of the Properties dialog box (File menu) is Anna Gerrard, inserting this field in your document results in the following:
Contact: ANNA GERRARD