J
Joanne
I am trying to drop info from my access table into a word document
'bookmark'. When I run the following code I get an error
- Runtime error 424 Object required.
Any ideas what I should be doing that I am not? I wonder if it has
something to do with the owordapp being properly activated.
Public Sub cboDirDeposit_AfterUpdate()
Dim oWordapp As Word.Application
Set oWordapp = New Word.Application
oWordapp.Documents.Open
("c:\NMWorkpackage\DirectDepAuthorization.Doc")
With oWordapp.ActiveDocument.Bookmarks
.Item("SSN").Range.Text = tblEmpContInfo.SSN
End With
End Sub
The bookmark in word is named SSN, and the field in the table is also
named SSN
Thanks for your time and help
'bookmark'. When I run the following code I get an error
- Runtime error 424 Object required.
Any ideas what I should be doing that I am not? I wonder if it has
something to do with the owordapp being properly activated.
Public Sub cboDirDeposit_AfterUpdate()
Dim oWordapp As Word.Application
Set oWordapp = New Word.Application
oWordapp.Documents.Open
("c:\NMWorkpackage\DirectDepAuthorization.Doc")
With oWordapp.ActiveDocument.Bookmarks
.Item("SSN").Range.Text = tblEmpContInfo.SSN
End With
End Sub
The bookmark in word is named SSN, and the field in the table is also
named SSN
Thanks for your time and help