L
Leonard Priestley
I have a form which refers to relevant Word documents. I want to store the
location of each document and open it via the Access Form.
When I tried using a hyperlink, I found that when the Word document opens,
the Access form is minimised, and the process of closing the Word document
and maximising Access is do-able, but feels clumsy and inconvenient.
I tried a command button with the following code:
Dim oApp = CreateObject("Word.Application")
oApp.Visible = True
- and this would be just fine, because it opens the Word document in a
smaller window, leaving the original Access form visible, so the user knows
where they are and how to get back to Access. My problem is, I can't find
the code to specify the name of the document I want opened. Is there a web
site that has information on this subject?
Ideally, I would also like some code in Access that ensures the Word
document is closed, not just minimised when the user is finished with it.
Regards
Leonard Priestley
location of each document and open it via the Access Form.
When I tried using a hyperlink, I found that when the Word document opens,
the Access form is minimised, and the process of closing the Word document
and maximising Access is do-able, but feels clumsy and inconvenient.
I tried a command button with the following code:
Dim oApp = CreateObject("Word.Application")
oApp.Visible = True
- and this would be just fine, because it opens the Word document in a
smaller window, leaving the original Access form visible, so the user knows
where they are and how to get back to Access. My problem is, I can't find
the code to specify the name of the document I want opened. Is there a web
site that has information on this subject?
Ideally, I would also like some code in Access that ensures the Word
document is closed, not just minimised when the user is finished with it.
Regards
Leonard Priestley