EMail a report

  • Thread starter Thread starter henny
  • Start date Start date
H

henny

Guest
I have a table of employees with there email addresses. I want a macro that will send an report via email to a selected employee. How can I accomplish this?
 
I may of misunderstood your question the first time. If you have the form open and the email address is in a field. This may work: Put Me.YourFiledName in the To part of the SendObject argument.

Just use your field that holds the email address in place of the YourFieldName.


In code you would do it like this:

DoCmd.SendObject acReport, "ReportName", , Me.EmailAddress, , , _
"OptionalSubject", "OptionalMessage", True
 

Users who are viewing this thread

Back
Top Bottom