Use a form to open a Word doc

Use a form to open a Word doc

Post by SmFkZT » Wed, 15 Mar 2006 11:57:27


Hello:
Can someone please tell me how I can use a form or button to open a specific
MS Word document? I would like the user to be able to open the userguide(word
doc) with a button or form.
Thanks,
J
 
 
 

Use a form to open a Word doc

Post by Albert D.K » Wed, 15 Mar 2006 12:12:44

Just use

dim strDoc as string

strDoc = "c:\data\mydoc.doc"
application.FollowHyperlink strDoc

You can launch any type file....excel..pdf..etc. with the above.....



--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
XXXX@XXXXX.COM
http://www.yqcomputer.com/

 
 
 

Use a form to open a Word doc

Post by SmFkZT » Wed, 15 Mar 2006 13:12:26

Thank you Albert.