icthus123
06-08-2007, 04:25 AM
I'm trying to open a word document from access and enter some data from my access form into the document.
I've used this code:
Dim objWord As Object
Dim objDocument As Word.Document
Set objWord = CreateObject("Word.Application")
objWord.Visible = True
Set objDocument = objWord.Documents.Add
This opens a new word document. However, I can't work out how to go from here to entering text automatically into the document. Can anyone help?
I've used this code:
Dim objWord As Object
Dim objDocument As Word.Document
Set objWord = CreateObject("Word.Application")
objWord.Visible = True
Set objDocument = objWord.Documents.Add
This opens a new word document. However, I can't work out how to go from here to entering text automatically into the document. Can anyone help?