G
Guest
I am using the code below to fax a PDF from Access. This all works fine
except that it leaves Acrobat Reader open after it has finished. Could
someone please advise what I need to add to close Acrobat Reader.
Dim objOutlook As Outlook.Application
Dim objEmail As Outlook.Mailitem
Set objOutlook = CreateObject("Outlook.application")
Set objEmail = objOutlook.CreateItem(olMailItem)
Dim stDocName As String
stDocName = "Delivery Notification - PrintPDF"
DoCmd.RunMacro stDocName
With objEmail
.To = "[fax:" & Me![Fax1] & "]"
.Attachments.Add "C:\SendPDF\Delivery Notification - All Up PDF.pdf":
.Send
End With
Thanks in advance.
except that it leaves Acrobat Reader open after it has finished. Could
someone please advise what I need to add to close Acrobat Reader.
Dim objOutlook As Outlook.Application
Dim objEmail As Outlook.Mailitem
Set objOutlook = CreateObject("Outlook.application")
Set objEmail = objOutlook.CreateItem(olMailItem)
Dim stDocName As String
stDocName = "Delivery Notification - PrintPDF"
DoCmd.RunMacro stDocName
With objEmail
.To = "[fax:" & Me![Fax1] & "]"
.Attachments.Add "C:\SendPDF\Delivery Notification - All Up PDF.pdf":
.Send
End With
Thanks in advance.