Article ID: 181731
Article Last Modified on 11/1/2006
CITY EMPLOYEE SALES
Atlanta Smith $3,000
Atlanta Gates $50,000
Atlanta Henderson $10,000
Houston Jones $8,000
Houston Kelley $9,000
Houston Peterson $0
{If{MergeSeq} = "1" "{Mergefield City}<P>
" ""}{Set Place1 {Mergefield City}}<P>
{If{Place2}<>{Place1}"<P>
{Mergefield City}<P>
<P>
{Mergefield Employee}{Mergefield Sales}" "{Mergefield
Employee}{Mergefield Sales}"}{Set Place2{Mergefield City}}<P>
The fields laid out in this example will produce a catalog listing
on the same page as follows:
Atlanta
Smith $3,000
Gates $50,000
Henderson $10,000
Houston
Jones $8,000
Kelley $9,000
Peterson $0
{If{MergeSeq} = "1" "{Mergefield City}<P>
" ""}{Set Place1 {Mergefield City}}<P>
{If{Place2}<>{Place1}"
----------------------------Page Break--------------------------------
{Mergefield City}<P>
<P>
{Mergefield Employee}{Mergefield Sales}" "{Mergefield
Employee}{Mergefield Sales}"}{Set Place2{Mergefield City}}<P>
NOTE: A page break is inserted either by pressing SHIFT+RETURN or clicking
Break on the Insert menu, select Page Break and then click OK.
Atlanta
Smith $3,000
Gates $50,000
Henderson $10,000
----------------------------Page Break--------------------------------
Houston
Jones $8,000
Kelley $9,000
Peterson $0
{If{MergeSeq} = "1" "{Mergefield City \* Upper}<P>
" ""}{Set Place1 {Mergefield City}}<P>
{If{Place2}<>{Place1}"<P>
{Mergefield City \* Upper}<P>
<P>
{Mergefield Employee}{Mergefield Sales}" "{Mergefield
Employee}{Mergefield Sales}"}{Set Place2{Mergefield City}}<P>
The fields laid out in this example will produce a catalog listing on the
same page with the City in all capital letters as follows:
ATLANTA
Smith $3,000
Gates $50,000
Henderson $10,000
HOUSTON
Jones $8,000
Kelley $9,000
Peterson $0
fields, formatting
141922 WD: How to Start a Mail Merge
Additional query words: invoice catalog phone directory conditional
Keywords: kbfield kbhowto kblayout kbmerge KB181731