C
ColinD
I am trying to merge a single record in an Access table into a Word document.
I have set the data source in the Word document, and when I open it, it
correctly displays the record from Access.
However, I would like to be able to open the document programmatically from
within Access, with this code:
Set wrdDoc = wrdApp.Documents.Open("doc name", , True)
wrdDoc.MailMerge.Execute
But the Execute property generates the error:
This method or property is not available because the document is not a mail
merge main document.
The document opens but does not display the right record.
Any help would be appreciated.
Many thanks
Colin Dimond
I have set the data source in the Word document, and when I open it, it
correctly displays the record from Access.
However, I would like to be able to open the document programmatically from
within Access, with this code:
Set wrdDoc = wrdApp.Documents.Open("doc name", , True)
wrdDoc.MailMerge.Execute
But the Execute property generates the error:
This method or property is not available because the document is not a mail
merge main document.
The document opens but does not display the right record.
Any help would be appreciated.
Many thanks
Colin Dimond