Show us your code.

Signature
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
> Purpose: the mail merge has been set up as an email merge. I want to
> view
[quoted text clipped - 15 lines]
>>>
>>> Craig
Code is as follows: I am using a word merge that was created by someone
else but editing it to perform differently.
If strActiveDoc = "Invoice.doc" Then
WordDoc.MailMerge.OpenDataSource _
Name:=strDataDir & TextMerge, _
ConfirmConversions:=False, _
ReadOnly:=False, LinkToSource:=True, AddToRecentFiles:=False, _
PasswordDocument:="", PasswordTemplate:="",
WritePasswordDocument:="", _
WritePasswordTemplate:="", Revert:=False, Format:=0, _
Connection:="", SQLStatement:="", SQLStatement1:=""
With WordDoc.MailMerge
.ReadOnly = True
.Destination = 2 ' 0 = new doc 2=email
.MailAsAttachment = False
.MailAddressFieldName = "AdEmail"
.MailSubject = "Invoice " &
Forms!frmAdvertisers!subfrmAdvertisements!AdvertisementID
.SuppressBlankLines = True
With .datasource
.FirstRecord = 1
.LastRecord = 1
End With
'.Execute Pause:=False (This line i noted which seems to stop the
mail merge from executing)
End With
'WordDoc.Close (False)
wordApp.Visible = True
wordApp.Windows(wordApp.Windows.Count).Activate
If strOutDocName <> "" Then
wordApp.ActiveDocument.SaveAs strOutDocName
End If
AppActivate "Microsoft Word"
wordApp.Activate
wordApp.WindowState = 1
Thanks
Craig
> Show us your code.
>
[quoted text clipped - 17 lines]
>>>>
>>>> Craig
I have found one part of the solution
WordDoc.MailMerge.ViewMailMergeFieldCodes = 0 (this switches from field
view to data view) -1 (field)
Craig
> Show us your code.
>
[quoted text clipped - 17 lines]
>>>>
>>>> Craig