Mike375
06-20-2008, 02:10 PM
Currently I have a lot of letters that are opened from Access, data put into bookmarks, printed and the letter copied back to a memo field in a Many table. Naturally this all depends on the Word.docs being in a folder.
Is there any way that the Word docs could be stored in Access, such as an OLE field and the same thing be done.
In other words could my data base do what it does without depending on the word.docs being stored in a folder.
Edited to add
Dim WordObj As Word.Application
Dim WordDoc As Word.Document
Dim WordRange As Word.Range
Set WordObj = CreateObject("Word.Application")
Set WordDoc = WordObj.Documents.Open _
("C:\Letters\0AMPMike.doc")
WordObj.Visible = True
Is there some way I can replace this part
("C:\Letters\0AMPMike.doc")
WordObj.Visible = True
if the letter is embedded in OLE (or whatever) and then the rest of the code follows.
Is there any way that the Word docs could be stored in Access, such as an OLE field and the same thing be done.
In other words could my data base do what it does without depending on the word.docs being stored in a folder.
Edited to add
Dim WordObj As Word.Application
Dim WordDoc As Word.Document
Dim WordRange As Word.Range
Set WordObj = CreateObject("Word.Application")
Set WordDoc = WordObj.Documents.Open _
("C:\Letters\0AMPMike.doc")
WordObj.Visible = True
Is there some way I can replace this part
("C:\Letters\0AMPMike.doc")
WordObj.Visible = True
if the letter is embedded in OLE (or whatever) and then the rest of the code follows.