How do I open a specific Word document within access

J

Jay

I would like to know how to do that, as the word document is mail merging
from the database and I would like to print off that Word document. However I
would like this to be done by using a switchboard, as this will be the
interface that people will be using.
 
N

Neil

Dim Objword As Object
Set Objword = CreateObject("Word.Application")
With Objword
..Documents.Open FileName:="c:\My file"
..Visible = True
End With

Paste this code into your VBA editor, and then either call it directly from
your switchboard item, or if you're not sure about that then call it from a
macro.
 

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