I currently use the following code to allow users to mail merge from Access to Word. It appears to cicumvent all the problems in other methods by using Word to ‘pull the data’ rather than have Access ‘push the data’, which doesn’t work in an MDE. I’ve found it the only successful way of handling mail merges.
With doc.MailMerge
.MainDocumentType = wdFormLetters
.OpenDataSource _
Name:=gstrDataPath & gstrDataName, _
LinkToSource:=True, _
AddToRecentFiles:=False, _
Connection:=”TABLE tblMerge”
End With
appWord.Visible = True
appWord.Activate
The problem is that the extra copy of Access needed by DDE is sometimes left on the Windows taskbar and this may confuse users. Does anyone know how I can remove this copy from within Access?