Hello All,
Probably it's too simple to ask in here but i'm creating/modifying my old database and have a problem to run some code.
I want to send a report as PDF by email and for that i have create button with this code
Code:
Private Sub Polecenie11_Click()
DoCmd.SendObject acSendReport, "Report", acFormatPDF, "recipient@compaty.com", [cc email(s)], [bcc email(s)], [message subject], [messagebody], True
End Sub
Unfortunately im getting error message.
Im using Access 2016 what should i do to run this??