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
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
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