How do I open a specific Word document within access

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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.
 
Back
Top