FGM said:
How do I open a word document from Access with VBA coding???
Thanks
The below worked for me.
First set a reference in Access to word. Do that by opening up the Visual
Basic Editor and choosing Tools / References from the menu path. Then ensure
that Microsoft Word 9.0 object library is checked (or whatever version of
word is on your machine).
Then insert a module and put the following code in.
Sub Word()
Dim appWD As New Word.Application
appWD.Documents.Open "full filepath and filename"
appWD.Visible = True
End Sub
There may be other variations but this works too.
Regards,
Bill Horton