Link to home
Start Free TrialLog in
Avatar of birstein
birstein

asked on

Invoking Word Merge from Access 2002

I have some complicated Word 2002 documents that need to be merged with data from an Access 2002 database. However, I'd like to control everything from Access, not from Word since the users do not know how to merge. How do I invoke and complete the merge programmatically from Access?

Thanks in advance for any help.

Kathryn
ASKER CERTIFIED SOLUTION
Avatar of jjafferr
jjafferr
Flag of Oman image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of birstein
birstein

ASKER

Great! This works well.

One last thing, though, what to do if there is a printer error?

Like if the printer is out of paper? or turned off?

kathryn
Thanks for the points and the grade,

I was thinking about this after I posted my comment,

If the user have a lot mail merge files, I would prefer if you divide the above code in two parts,
Part 1
Deals with creating the mail merge files, with printing them.
So that they can do this option even at off hours, on timer of say at 9 pm.

Part 2
Will do the printing.

For the printing error handeling, you can use the normal error handling routine which is automatically produced once you create a command button with the wizard.

I hope this helps,

jaffer