Not sure why this isn't working, but when I email a report directly from my form it gets stuck in the Outbox of Outlook.
Code:
DoCmd.SendObject acSendReport, "rpt_Letters", acFormatPDF, , , , "rpt_Letters" & _
"_" & Me.txtOrganizationName & "_" & Format(Date, "yyyymmdd") & ".pdf"
You can go to Outlook open the email and click Send, but it still won't go. Clicking Send/Receive doesn't work either, but when I add an email address (mine) and set Edit Message to False, e.g.
Code:
DoCmd.SendObject acSendReport, strReportName, acFormatPDF, "myEmail@myCompany.com", , , "rpt_Letters" & _
"_" & Me.txtOrganizationName & "_" & Format(Date, "yyyymmdd") & ".pdf", , False
the email goes on its merry way. In all cases Outlook is already running. This has happened to others users on different computers.
Any suggestions?