Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mail merging to word 1

Status
Not open for further replies.

jacq

Technical User
Jan 3, 2001
38
GB
Hi

I want to do a mail-merge from Access to Word.
The user would then click merge to printer and click ok to print.
I want to automate this, but am having problems
I tried saving a macro in Word, called autoexec to perform the said task, but I'm getting an error.

I'm running this code from Access

Code:
DoCmd.OutputTo acOutputQuery, "labels", acFormatRTF, "\\saturn\applications\LMC_labels\datamark_labels.rtf", False

Code:
Call Shell("C:\Program Files\Microsoft Office\Office\WINWORD.EXE \\saturn\applications\LMC_labels\datamark.doc", vbMaximizedFocus)

Code:
Application.FollowHyperlink "\\saturn\applications\LMC_labels\datamark.doc"

I think the problem is that the autoexec macro in word is running before Access has loaded word

Any ideas?
Can I send commands from Access, such as
mergetoprinter

Thanks
Jacq
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top