Can I use a Command Button to open a word file

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

Guest

I have created a database for work. So, i of course have had to create a
user manual (Microsoft Word) to go with it. I was wondering if i could use a
command button on my main form that will open up this word file.

Thanks for the help
 
Combo said:
I have created a database for work. So, i of course have had to
create a user manual (Microsoft Word) to go with it. I was wondering
if i could use a command button on my main form that will open up
this word file.

Thanks for the help

Application.FollowHyperlink "Path to word.doc"
 
Try this link

http://www.accessdatabasetips.com/open-word-excel-file-from-button.html
======================================
Anoher option, you can use this code
To open a word document, create reference to Microsoft Word and then

Function Open_WordDoc()

Dim objWord As Word.Application
Dim objDoc As Word.Document
Dim DocPath As String

DocPath = "Path and name of the document"

Set objWord = New Word.Application
Set objDoc = objWord.Documents.Open(DocPath)

objDoc.Activate
objDoc.PrintOut ' To print out
objWord.Visible = True ' To display

End Function
 
Back
Top