S
Stanley
I am using Office 2002 and I would like to open a Word document from Access.
My coding looks like this:
Private Sub cmdPreview_Click()
Dim objWord As Word.Application
Set objWord = CreateObject("Word.Application")
objWord.Documents.Open ("\\Zoniserver2\ZoniShared2\Wordstuff\Mydoc.doc")
objWord.Documents(1).Activate
End Sub
On the first click nothing displays, but in the directory the document has
its locking file open.
On the second click the document opens, but with a warning that it is read
only.
How can I get the document to open on the first click without any messages.
Thanks,
Stanley
My coding looks like this:
Private Sub cmdPreview_Click()
Dim objWord As Word.Application
Set objWord = CreateObject("Word.Application")
objWord.Documents.Open ("\\Zoniserver2\ZoniShared2\Wordstuff\Mydoc.doc")
objWord.Documents(1).Activate
End Sub
On the first click nothing displays, but in the directory the document has
its locking file open.
On the second click the document opens, but with a warning that it is read
only.
How can I get the document to open on the first click without any messages.
Thanks,
Stanley