Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 4th, 2005, 11:02 AM
Authorized User
 
Join Date: Mar 2004
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Word E-Mail Merge using Access Tables

This is a question about approach rather than method.

I need to develop a process to send emails to contacts whose details are stored in an Access Data Project (an MSDE database). It will need to select the contacts based on criteria in the database (eg all those Contacts in the Contacts table that are linked to a selected Interest Group in the Interest Group table).

It seems to me that, using Office Automation, I have the choice of building the solution in Access, Word or Outlook. Each of these has obvious advantages:
Access - I have more experience of programming Access; it will be easier to update Access from within Access (ie with which contacts have been sent which emails);
Word - the users are most comfortable in Word; the solution might be able to include the Mail Merge Wizard with which some of the users are already familiar;
Outlook - there may be less grief from Outlook's clumsy security mechanisms if the process is controlled by Outlook.

Does anyone have any recommendations or warnings that may prevent me choosing a path I will regret?

Can anyone recommend a book that covers controlling a Word Mail Merge with VBA?

PS The users can already meet the objective by starting a mail merge in Word, selecting the appropriate view and then using Edit recipient list to filter by the appropriate criteria. However I am told that this is "much too complicated" - my commission is to give the users a simple way to do this. I imagine a form (in Access, Word or Outlook) which offers them a selection of check boxes and drop down lists and then a process which generates a view/list of selected contacts which is passed to the Mail Merge process...

R
__________________
R
 
Old February 5th, 2005, 08:57 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default

Hi Richard,

Quote:
quote:Can anyone recommend a book that covers controlling a Word Mail Merge with VBA?
On the Mail Merge part of your question, Helen Feddema is someone who has spent a great deal of time working with just about every type of Office Automation you can think of. You might find some of her sample databases useful. She has one in particular that I've played with a bit that demonstrate four different techniques for merging to Word. Of the four, mail merge is her least preferred. Custom doc properties are preferred for creating letters, and the TypeText methos is preferred for labels and cards.

The link to "Merging to Word Four Ways" is:

http://www.helenfeddema.com/CodeSamples.htm

Look under Acces -> Word: VBA sample #24.

Helen also has published several Access Archon articles addressing merging from Access to Word. They are at:

http://www.helenfeddema.com/access.htm

Look at:

#39 - Creating Word Custom Doc Properties
#44 - Merging to Word from Linked Access Tables
#65 - Working with the Word Object Model
#92 - Mail Merge Mysteries

See also has a number of articles with sample dbs for a variety of e-mail issues.

Might give you some ideas.

HTH,

Bob







 
Old February 7th, 2005, 04:48 AM
Authorized User
 
Join Date: Mar 2004
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Bob

Helen Feddema's site does indeed have a wealth of useful information and examples.

R





Similar Threads
Thread Thread Starter Forum Replies Last Post
"Pushing" from Access to Word via Mail Merge Loralee BOOK: Access 2003 VBA Programmer's Reference 2 March 8th, 2006 10:20 PM
Access launching Word for mail merge Loralee Access 8 November 14th, 2005 04:24 PM
Mail Merge with MS Word bezaman Classic ASP Basics 1 October 6th, 2005 04:13 PM
Access/Vba mail merge to word help alfonse Access VBA 0 July 28th, 2005 05:11 AM
Access to Word Mail Merge Automation kareltje Access VBA 6 June 9th, 2005 04:54 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.