View Full Version : How can I open a Word DOCUMENT from Access?


a14929
04-14-2000, 02:16 AM
How do I open a Word document from Access. I know how to open the application, itself, but not a document

PaulaDavies
12-27-2000, 04:16 AM
create a button.
then seyt vits hyper link the the document that you want to open.
Paula

Neal
12-27-2000, 08:06 AM
I'm not sure how you open word, but I use this to open word and a specific object. I have two variables:
Dim hotapp As Word.Application
Dim hotdoc As Word.Document

Then this code opens them:
Set hotapp = CreateObject("Word.Application")
Set hotdoc = hotapp.Documents.Open("P:\Editorial Operations\Production Report\Hotline.doc")

You also need to make them visible:

hotapp.visible = True