A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Mailmerge
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Word 2007 merge



 
 
Thread Tools Display Modes
  #1  
Old November 3rd, 2008, 08:03 PM posted to microsoft.public.word.mailmerge.fields
Steve1445
external usenet poster
 
Posts: 4
Default Word 2007 merge

I am pulling data from an data source. I want to display data along the line
of company and then the employees the work for the company. I have no problem
pulling the data, only displaying it.

Top half of the page shows company bottom half all the associate employees.

My question revolves around the NEXT or NEXT IF fields. If I use NEXT the my
merge shows company XYZ and the associated employees, the bad part is other
employees who do not work for XYZ show up too.

So, I figured I need to be conditional, I defined the NEXT IF expression as
"NEXT IF ORG_ORGNAME = CUST_ORGNAME". Not sure that my syntax is entirely
correct. But it should look at the two fields where this data comes from (the
data is coming from an SQL joined table view query) and say well this does
not equal that, and stop showing the next companies employees. But in my case
all I get is the same record repeating over and over.

Must be overlooking something simple here. Thanks in advance.
  #2  
Old November 3rd, 2008, 09:42 PM posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
Default Word 2007 merge

It's not as simple as that, see:

http://cornell.veplan.net/article.aspx?&a=3815

or fellow MVP, macropod's tutorial on Catalogue/Directory Mailmerges at:

http://www.wopr.com/cgi-bin/w3t/show...?Number=731107



--
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

"Steve1445" wrote in message
...
I am pulling data from an data source. I want to display data along the
line
of company and then the employees the work for the company. I have no
problem
pulling the data, only displaying it.

Top half of the page shows company bottom half all the associate
employees.

My question revolves around the NEXT or NEXT IF fields. If I use NEXT the
my
merge shows company XYZ and the associated employees, the bad part is
other
employees who do not work for XYZ show up too.

So, I figured I need to be conditional, I defined the NEXT IF expression
as
"NEXT IF ORG_ORGNAME = CUST_ORGNAME". Not sure that my syntax is entirely
correct. But it should look at the two fields where this data comes from
(the
data is coming from an SQL joined table view query) and say well this does
not equal that, and stop showing the next companies employees. But in my
case
all I get is the same record repeating over and over.

Must be overlooking something simple here. Thanks in advance.



  #3  
Old November 3rd, 2008, 10:06 PM posted to microsoft.public.word.mailmerge.fields
Steve1445
external usenet poster
 
Posts: 4
Default Word 2007 merge

Thanks Doug, I found the MS information as I continued to work, but the
tutorial really looks like what I need. Thanks for pointing me in the right
direction. Steve

"Doug Robbins - Word MVP" wrote:

It's not as simple as that, see:

http://cornell.veplan.net/article.aspx?&a=3815

or fellow MVP, macropod's tutorial on Catalogue/Directory Mailmerges at:

http://www.wopr.com/cgi-bin/w3t/show...?Number=731107



--
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

"Steve1445" wrote in message
...
I am pulling data from an data source. I want to display data along the
line
of company and then the employees the work for the company. I have no
problem
pulling the data, only displaying it.

Top half of the page shows company bottom half all the associate
employees.

My question revolves around the NEXT or NEXT IF fields. If I use NEXT the
my
merge shows company XYZ and the associated employees, the bad part is
other
employees who do not work for XYZ show up too.

So, I figured I need to be conditional, I defined the NEXT IF expression
as
"NEXT IF ORG_ORGNAME = CUST_ORGNAME". Not sure that my syntax is entirely
correct. But it should look at the two fields where this data comes from
(the
data is coming from an SQL joined table view query) and say well this does
not equal that, and stop showing the next companies employees. But in my
case
all I get is the same record repeating over and over.

Must be overlooking something simple here. Thanks in advance.




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:45 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.