User Manual Command Button to open Word file

WinDancer

Registered User.
Local time
Today, 03:37
Joined
Oct 29, 2004
Messages
290
I am just finishing up the user's manual for an Access application that is almost finished.

The user's manual is a 31 page Word document.

Is there a way to open that specific Word document from a command button on the appliation's Main Menu?

Thanks!
 
why not turn it into a proper help file

free help compiler is pretty easy

basically each topic is a separate rtf page, so your work is not wasted anyway
 
Anyone have any ideas?
 
if that didnt help i got some stuff from access cookbook which

a) finds the executable file associated with any file (from the extension) then
b) shells the app to open the executable

i dont want to post all the code, but heres the declarations

i hope this helps

Code:
Declare Function acb_apiFindExecutable Lib "shell32" Alias "FindExecutableA" _
 (ByVal strFile As String, ByVal strDirectory As String, ByVal strResult As String) As Long
Declare Function acb_apiShellExecute Lib "shell32" Alias "ShellExecuteA" _
 (ByVal hwnd As Long, ByVal strOperation As String, ByVal strFile As String, _
  ByVal strParameters As String, ByVal strDirectory As String, ByVal lngShowCmd As Long) As Long
 
Thanks for trying :)
I found this on the net, and it works flawlessly:
"Function PrintDoc()
Dim WordObj As Object
Set WordObj = CreateObject("Word.Application")
WordObj.Documents.Open "T:\Insurance Services db\Classification_Serv\EmpServDB\EmployerServicesDataBase.doc"
WordObj.PrintOut Background:=False
WordObj.Quit
Set WordObj = Nothing
End Function"

Thanks,
Dave
 
I did a drop down help version
memo fields
table with help on it drop and and read .. seems to have worked
ok no facny formatting but I could add to it easly

regards
 
thats easier, using the word object

i think the solution in the cook book opened whatever non specific app was linked to any given file, but thats a lot easier, knowing you specifically want word
 

Users who are viewing this thread

Back
Top Bottom