On Fri, 16 Apr 2004 20:44:28 GMT,
Hu***************@lerc.nasa.gov
(Tony Schoeffler) wrote:
I have an Access application where it would desirable to open a word
file directly from an Access Form. I have been able to open the Word
application, but I have not been able to have it open with the desired
file. Any help or sample code would be appreciated.
Post the code you have used to open Word. Usually, all you need to do
is add to the documents collection of the Word object. For example,
if you used:
Dim objWord as object
Set objWord = CreateObject("Word.Application")
objWord.visible = True
objWord.documents.open "c:\mydirectory\myworddocument.doc"
mike