Access.2007.VBA.Bibl..

(John Hannent) #1
FIGURE 2.10

The Doc properties for the Milano Letter (Doc Props) template.


Next, place DocProperty fields in the template where you want the values in the doc properties to
display.

One bookmark is still needed, even if you are using doc properties to display data from
Access: The BarCode field needs to reference a bookmark in order to create the PostNet
bar code. Therefore, after placing a DocProperty field for the zip into the template, select that field
and create a bookmark for it.

To insert a DocProperty field, select QuickParts from the Text group on the Insert tab of the
Ribbon, select DocProperty as the field type, and then select the doc property from the Property
list (see Figure 2.11).

Don’t give your doc properties the same names as any built-in properties, although
Word lets you do this, because this will make it difficult to select the correct property
from the list of properties, which includes both built-in and custom doc properties.

Figure 2.12 shows the first page of the template, with DocProperty fields displayed, and one book-
mark to indicate the place where the letter text is to be typed.

TIPTIP


NOTENOTE


Creating Word Documents from Access 2

Free download pdf