Opening a word file from an access form

  • Thread starter Thread starter Dennis O'Keefe
  • Start date Start date
D

Dennis O'Keefe

Help can someone tell me how to open a word document from
an access form. I want to access the document located on
my C drive with a control button. I hope to enter the
file location in a field on the form and then access it by
pushing the control button. Thanks
 
It is easy to open the word doc:

The code behind the button can be:


Application.FollowHyperLink "c:\my documents\test.doc"

The above of course would open a document called test in your my documents
folder.

If you are looking for some code that "merges" the current record and fields
into a word doc, then you can grab my working example at:

http://www.attcanada.net/~kallal.msn/msaccess/msaccess.html
 
Albert:
Thank you I am getting close. I have a directory holding
many word documents. I would like to have an access
database record that contains a field with the location of
the word document (such as "C:\my documents\test.doc")so
that when I push the button it brings up that word file.
While the next record would have a different file name and
location in the same field (such as "C:\my
documents\differant.doc")and pushing the same control
button would bring up the different word document, linked
to that record. I hope I am clear with my discription.
Thanks Dennis.
 
Back
Top