Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Basically, I am running MS Access 2016 and I want to automatically create a text file using MS Word MailMerge.
strSQL = "SELECT * FROM " & "'" & "tbl_Header" & "'" With wrdDoc.MailMerge .MainDocumentType = wdFormLetters .OpenDataSource _ Name:="R:\EDI_Data.accdb", _ Format:=wdOpenFormatAuto, _ AddToRecentFiles:=False, _ LinkToSource:=True, _ Connection:="TABLE tbl_Header", _ SQLStatement:=strSQL, _ SubType:=wdMergeSubTypeAccess .Destination = wdSendToNewDocument .Execute Pause:=False End With
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.