Print Word doc from Access

S

SimonM

Try using the following on the On_Click event of the
button (this prints the document specified in the path):

Dim MyPath As String, wd As Object, dc As Object
MyPath = "C:\My Documents\Doc1.doc"
Set wd = CreateObject("Word.Application")
Set dc = wd.Documents.Open(MyPath)
dc.PrintOut
dc.Close
Set dc = Nothing
wd.Quit
Set wd = Nothing
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top