G
Guest
I am trying to Open a Word Document from an Access form "User Documentation"
I get an Automation Error. I am using Access 2000 for testing. However, it
will be installed using Access 97. Could some one please help:
Private Sub Command0_Click()
Dim objword As Word.Application
Dim objDoc As Word.Document
Dim DocPath As String
DocPath = "c:\MyPath\UserDoc.doc"
Set objword = New Word.Application
'************************************************
' Automation Error - The Server Threw An Exception
' Run Time Error -2147417851
' Note - I have Triple Check the Path, It's Correct
'************************************************
Set objDoc = objword.Documents.Open(DocPath)
'************************************************
objDoc.Activate
objword.Visible = True
End Sub
I get an Automation Error. I am using Access 2000 for testing. However, it
will be installed using Access 97. Could some one please help:
Private Sub Command0_Click()
Dim objword As Word.Application
Dim objDoc As Word.Document
Dim DocPath As String
DocPath = "c:\MyPath\UserDoc.doc"
Set objword = New Word.Application
'************************************************
' Automation Error - The Server Threw An Exception
' Run Time Error -2147417851
' Note - I have Triple Check the Path, It's Correct
'************************************************
Set objDoc = objword.Documents.Open(DocPath)
'************************************************
objDoc.Activate
objword.Visible = True
End Sub