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 / February 2006

Tip: Looking for answers? Try searching our database.

Help on Mail Merge just only Show One Record

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alan Tang - 20 Feb 2006 00:47 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
 <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
 <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello:<br>
<br>
&nbsp;&nbsp;&nbsp; I have trying to perform the Mail Merge in Word 2003. However, it
just only display by each record. <br>
<br>
Data File:<br>
<span class="weboutput">
<table border="1" cellpadding="6" cellspacing="2" width="60%">
 <tbody>
   <tr>
     <th align="left" valign="bottom"><font size="2">City</font></th>
     <th align="left" valign="bottom"><font size="2">Employee</font></th>
     <th align="left" valign="bottom"><font size="2">Sales</font></th>
   </tr>
   <tr>
     <td valign="top"><font size="2">Atlanta</font></td>
     <td valign="top"><font size="2">Galos</font></td>
     <td valign="top"><font size="2">$3,000</font></td>
   </tr>
   <tr>
     <td valign="top"><font size="2">Atlanta</font></td>
     <td valign="top"><font size="2">Delaney</font></td>
     <td valign="top"><font size="2">$50,000</font></td>
   </tr>
   <tr>
     <td valign="top"><font size="2">Atlanta</font></td>
     <td valign="top"><font size="2">Henningsen</font></td>
     <td valign="top"><font size="2">$10,000</font></td>
   </tr>
   <tr>
     <td valign="top"><font size="2">Houston</font></td>
     <td valign="top"><font size="2">Johnson</font></td>
     <td valign="top"><font size="2">$8,000</font></td>
   </tr>
   <tr>
     <td valign="top"><font size="2">Houston</font></td>
     <td valign="top"><font size="2">Kelly</font></td>
     <td valign="top"><font size="2">$9,000</font></td>
   </tr>
   <tr>
     <td valign="top"><font size="2">Houston</font></td>
     <td valign="top"><font size="2">Pak</font></td>
     <td valign="top"><font size="2">$0</font></td>
   </tr>
 </tbody>
</table>
</span><br>
<u><b>Field Code:</b></u><br>
<b>{</b> IF <b>{</b> MERGESEQ <b>}</b> = "1" "<b>{</b> MERGEFIELD
CITY <b>}</b>&para;<br>
" "" <b>}{</b> SET Place1 <b>{</b> MERGEFIELD CITY <b>}}</b>&para;<br>
<b>{</b> If <b>{</b> Place2 <b>}</b> &lt;&gt; <b>{</b> Place1 <b>}</b>"&para;<br>
<b>{</b> MERGEFIELD CITY <b>}</b>&para;<br>
&para;<br>
<b>{</b> MERGEFIELD EMPLOYEE <b>} {</b> MERGEFIELD SALES <b>}</b>" "<b>{</b>
MERGEFIELD EMPLOYEE <b>} {</b> MERGEFIELD SALES <b>}</b>" <b>}{</b>
SET Place2 <b>{</b> MERGEFIELD CITY <b>}}</b>&para; <br>
<br>
<u><b>Expect Result:</b></u><br>
<div class="indent">Atlanta<br>
<br>
Galos $3,000<br>
Delaney $50,000<br>
Henningsen $10,000<br>
<br>
Houston<br>
<br>
Johnson $8,000<br>
Kelly $9,000<br>
Pak $0 </div>
<br>
<b><u>Existing Problem Result:</u></b><br>
<div class="indent">Atlanta<br>
<br>
Galos $3,000<br>
-----------(Next Record)<br>
Atlanta<br>
<br>
Delaney $50,000<br>
-----------(Next Record)<br>
Atlanta<br>
<br>
Henningsen $10,000<br>
-----------(Next Record)<br>
Houston<br>
<br>
Johnson $8,000<br>
-----------(Next Record)<br>
Houston<br>
<br>
Kelly $9,000<br>
-----------(Next Record)<br>
Houston<br>
<br>
Pak $0 </div>
<br>
Can you kindly give me some hints?<br>
<br>
Thanks a lot!<br>
</body>
</html>
Graham Mayor - 20 Feb 2006 07:49 GMT
It appears you have been messing around with
http://support.microsoft.com/?kbid=294686 ?
Did you miss the bit about setting the document type to directory?

Signature

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

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

Hello:

   I have trying to perform the Mail Merge in Word 2003. However, it just
only display by each record.

Data File:
CityEmployeeSales
AtlantaGalos$3,000
AtlantaDelaney$50,000
AtlantaHenningsen$10,000
HoustonJohnson$8,000
HoustonKelly$9,000
HoustonPak$0

Field Code:
{ IF { MERGESEQ } = "1" "{ MERGEFIELD CITY }¶
" "" }{ SET Place1 { MERGEFIELD CITY }}¶
{ If { Place2 } <> { Place1 }"¶
{ MERGEFIELD CITY }¶

{ MERGEFIELD EMPLOYEE } { MERGEFIELD SALES }" "{ MERGEFIELD EMPLOYEE } {
MERGEFIELD SALES }" }{ SET Place2 { MERGEFIELD CITY }}¶

Expect Result:

Atlanta

Galos $3,000
Delaney $50,000
Henningsen $10,000

Houston

Johnson $8,000
Kelly $9,000
Pak $0

Existing Problem Result:

Atlanta

Galos $3,000
-----------(Next Record)
Atlanta

Delaney $50,000
-----------(Next Record)
Atlanta

Henningsen $10,000
-----------(Next Record)
Houston

Johnson $8,000
-----------(Next Record)
Houston

Kelly $9,000
-----------(Next Record)
Houston

Pak $0

Can you kindly give me some hints?

Thanks a lot!
Alan Tang - 21 Feb 2006 10:57 GMT
> It appears you have been messing around with
> http://support.microsoft.com/?kbid=294686 ?
> Did you miss the bit about setting the document type to directory?
>
>  
I have re-do and make sure the steps but it just only show one-by-one only!
 
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.