setting view merged data when automating word from Access

P

phleduc

I have a client for which I automated word from Access,
they want however to see the letter before merging it to a letter/e-mail as
they might tailor it slightly
What would be the code to add to turn on "view merged data"?

Thx, Philip




With doc.MailMerge
.OpenDataSource Name:=strDatasource
.Destination = wdSendToNewDocument
.SuppressBlankLines = True
With .DataSource
.FirstRecord = wdDefaultFirstRecord
.LastRecord = wdDefaultLastRecord
End With
.MailAddressFieldName = "conEmail"
.MailSubject = "Motorcycle Training Classes"

End With
 
Top