Hi,
I would like to open a word document from an access form (using a button). I get a runtime error message: "Run-time error 429 - ActiveX component can't create object".
I try to use a simple code:
Please help.
Thanks
I would like to open a word document from an access form (using a button). I get a runtime error message: "Run-time error 429 - ActiveX component can't create object".
I try to use a simple code:
Code:
Private Sub Command0_Click()
Dim wrd As Object
Set wrd = GetObject(, "Word.Application")
wrd.Visible = True
wrd.Documents.Open "C:\My Documents\Temp01.doc"
Set wrd = Nothing
End Sub
Please help.
Thanks