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  

How to add more filters to a Mail Merge?



 
 
Thread Tools Display Modes
  #1  
Old May 7th, 2004, 12:27 PM
Sam
external usenet poster
 
Posts: n/a
Default How to add more filters to a Mail Merge?

In the Mail Merge Helper Query Options Box I can only add
a total of 6 fields to filter on, how do I add more?
  #2  
Old May 7th, 2004, 04:12 PM
Peter Jamieson
external usenet poster
 
Posts: n/a
Default How to add more filters to a Mail Merge?

THere is no way using that box. You probably only have two options:
a. create a query or view in the data source or in MS Query (if that is
possible in your case)
b. using Word VBA, use the OpenDataSource statment or the QueryString
property of the MailMerge.DataSource object to issue the necessary SQL. That
should work for data sources such as Access, but I do not know if it will
work with data sources such as a Word table.

--
Peter Jamieson

"Sam" wrote in message
...
In the Mail Merge Helper Query Options Box I can only add
a total of 6 fields to filter on, how do I add more?



  #3  
Old May 7th, 2004, 04:49 PM
Cindy M -WordMVP-
external usenet poster
 
Posts: n/a
Default How to add more filters to a Mail Merge?

Hi Sam,

In the Mail Merge Helper Query Options Box I can only add
a total of 6 fields to filter on, how do I add more?

You'd have to edit the QueryString property (VBA) directly.
The tricky thing is, Word can't accept more than 255
characters for the SQL that performs the query...

What's your data source? And what version of Word/Office?

Can you describe the kind of filter/query you're trying to
set up in a bit more detail?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep
30 2003)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:-)

 




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 10:06 PM.


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