Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / April 2005

Tip: Looking for answers? Try searching our database.

grouping and page breaks in a merge

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tom - 21 Apr 2005 20:38 GMT
I am trying to get a mail merge to put city into a table, show all records
for the city into a second table on the same page and then start a new page
whenever the city changes.  

I tried to use the following code from Microsoft KB but it does not work:

{ 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 }}¶

I pasted the code as if from Microsoft's website becuase I could not figure
out out to create the formulas.
Graham Mayor - 22 Apr 2005 06:24 GMT
You cannot paste fields from a KB article, you have to recreate them using
CTRL+F9 for each pair of field boundaries {}

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

> I am trying to get a mail merge to put city into a table, show all
> records for the city into a second table on the same page and then
[quoted text clipped - 14 lines]
> I pasted the code as if from Microsoft's website becuase I could not
> figure out out to create the formulas.
Tom - 22 Apr 2005 13:02 GMT
I can get Word to create the brackets using CRTL F9 but I can't seem to get
it to create the expression inside the brackets as follows:

{ If { MERGESEQ } = "1" "{ MERGEFIELD CITY }¶

> You cannot paste fields from a KB article, you have to recreate them using
> CTRL+F9 for each pair of field boundaries {}
[quoted text clipped - 17 lines]
> > I pasted the code as if from Microsoft's website becuase I could not
> > figure out out to create the formulas.
Graham Mayor - 22 Apr 2005 14:44 GMT
What you have here is part of a field sequence (which continues on the line
you have not pasted). The pilcrow '¶' merely indicates that you should press
the enter key at that point. The rest you will have to type between the
field brackets.

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

> I can get Word to create the brackets using CRTL F9 but I can't seem
> to get it to create the expression inside the brackets as follows:
[quoted text clipped - 30 lines]
>>> I pasted the code as if from Microsoft's website becuase I could not
>>> figure out out to create the formulas.
Doug Robbins - 22 Apr 2005 14:46 GMT
Select each portion of the text that you want enclosed in field delimiters
and Press Ctrl + F9 or use Ctrl + F9 to insert each pair of empty field
delimiters and then use the keybaord to create the required expression.

Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

>I can get Word to create the brackets using CRTL F9 but I can't seem to get
> it to create the expression inside the brackets as follows:
[quoted text clipped - 23 lines]
>> > I pasted the code as if from Microsoft's website becuase I could not
>> > figure out out to create the formulas.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.