I don't understand what you mean by 'input the code'. The example uses merge
fields eg
{ If { MERGESEQ } = "1" "{ MERGEFIELD CITY }¶
" ""}{ SET Place1 { MERGEFIELD CITY }}¶
{ If { Place2 } <> { Place1 }"¶
----------------------------Page Break--------------------------------
{ MERGEFIELD CITY }¶
¶
{ MERGEFIELD EMPLOYEE } { MERGEFIELD SALES }" "{ MERGEFIELD EMPLOYEE } {
MERGEFIELD SALES }" }{ SET Place2 { MERGEFIELD CITY }}¶
which should reflect the content of your data source. You attach the data
source to the document containing the fields from the merge wizard, the
merge toolbar or the old mailmerge helper - see
http://www.gmayor.com/mail_merge_labels_with_word_xp.htm
As indicated on the web page the example produces
Atlanta
Galos $3,000
Delaney $50,000
Henningsen $10,000
----------------------------Page Break-----------------------------
Houston
Johnson $8,000
Kelly $9,000
Pak $0
You need to modify that layout to suit your requirements. No-one said it
would be easy
-<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>