Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-02-2011, 06:47 AM
Evis Evis is offline Simplified Mail Merge From a Query Windows 7 64bit Simplified Mail Merge From a Query Office 2007
Novice
Simplified Mail Merge From a Query
 
Join Date: May 2011
Posts: 3
Evis is on a distinguished road
Default Simplified Mail Merge From a Query

Hello everyone.



The problem is pretty simple- I'm working on a database for a friend who is running a small business. She's like to be able to use the database for a mail merge- simple enough, but from her requirements I'd like to be able to vary the criteria on the searches, and so use variable paramaters in them.

She isn't very computer literate, so teaching her to change the query paramters in design view is a last resort.

I can set up a query which will either use user defined paramaters [enter info here] or lookup a value in a form [Forms]![Infodump]![contactgroup] (For example), and these work fine on Access. However, they fall on thier backside when I try to use these queries to make a merge with MS Word.

So, is there a way around this? Or are there other methods I can use that would keep defining the query parameters simple? Any advice would be hugely appreciated. Thanks to you all for your consideration.
Reply With Quote
  #2  
Old 05-02-2011, 05:40 PM
macropod's Avatar
macropod macropod is offline Simplified Mail Merge From a Query Windows 7 32bit Simplified Mail Merge From a Query Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi evis,

In Word, you can use SKIPIF fields to specify that records should be omitted when one or more fields meet/don't meet certain criteria. If you want, you can combine these with FILLIN and/or ASK fields to prompt the user for a given criterion's value.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 05-03-2011, 01:45 AM
Evis Evis is offline Simplified Mail Merge From a Query Windows 7 64bit Simplified Mail Merge From a Query Office 2007
Novice
Simplified Mail Merge From a Query
 
Join Date: May 2011
Posts: 3
Evis is on a distinguished road
Default

Thanks for the reply macropod, I'm not sure how I'm supposed to use those commands to bypass the problem though? It seems to be the case that Word simply can't use a query without parameters that were already set in Access. It consistently fails to make the 'initial link' between the query and the document, regardless of how I begin the merge. Unless I set definate paramters in the Access query.

Just to offer a little more information, the query is a simple one: Each person on the database is assigned a contact group. The Query has one parameter, the contact group, and so the mail merge is sent to everyone in the selected group. What I would like is a way for the user to set the contact group the query is using without the need to teach her to use the query design. The normal methods of doing this though [such as user defined criteria] , seem to make the query incompatible with a mail merge.
Reply With Quote
  #4  
Old 05-03-2011, 02:21 AM
macropod's Avatar
macropod macropod is offline Simplified Mail Merge From a Query Windows 7 32bit Simplified Mail Merge From a Query Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi evis,

Assuming there's a 'Group' field, it's simply a matter of encoding a SKIPIF field in the mailmerge main document along the lines of:
{SKIPIF{MERGEFIELD Group}<> {FILLIN "Which Group do you want the records for?" \o}}
At the start of the mailmerge, the user will be prompted to input the Group name/ID (whatever it is that identifies Groups). The mailmerge will then only output the records for that Group.

Note: The field brace pairs (ie '{ }') for the above example are created via Ctrl-F9 - you can't simply type them or copy & paste them from this message.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 05-03-2011, 03:13 AM
Evis Evis is offline Simplified Mail Merge From a Query Windows 7 64bit Simplified Mail Merge From a Query Office 2007
Novice
Simplified Mail Merge From a Query
 
Join Date: May 2011
Posts: 3
Evis is on a distinguished road
Default

Hmm, get word to do the sorting. I like it! Thanks macropod, you've been a great help, this is exactly what I needed.
Reply With Quote
  #6  
Old 05-03-2011, 05:07 AM
macropod's Avatar
macropod macropod is offline Simplified Mail Merge From a Query Windows 7 32bit Simplified Mail Merge From a Query Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi evis,

What I've described is a process by which Word filters the data, rather than sorting it. Word can do both, however.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Simplified Mail Merge From a Query Saving INDV mail merges During the mail merge sedain121 Mail Merge 2 10-04-2011 07:52 PM
Word (Mail Merge) Refreshes Query Too Often! amarsha4 Mail Merge 1 11-10-2010 09:12 AM
mail merge from access query or two tables peter Mail Merge 0 08-24-2010 05:32 PM
Mail Merge Query kangabanga Mail Merge 0 09-25-2008 04:07 AM
Simplified Mail Merge From a Query Access 2003 query with wildcards into Word 2003 mail merge Poingdexter Office 1 10-30-2005 06:17 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:55 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft