Emailing an Access Report Using "With OutMail"

T

Tom Glasser

Hi Folks,
I am trying to automate the emailing of an Access report, avoiding any
human intervention. I have automated emails in the past using the
"With OutMail" construct, but not involving Access report or query objects.
So my question is this: Is there an easy way with this approach to attach
an Access report to the email, or include it in the body?

Thanks,
Tom
 
D

Daniel Pineault

Nothing could be simpler.

DoCmd.SendObject.

Look it up in the help file of all the details and examples.
 
M

m stroup

Do you mind if I tage another question? I am using DoCmd.sendobject and it
works beautifully. I cannot, however, figure out how to send to multiple
recipients within the to argument.
 
D

Douglas J. Steele

Use a single string value holding all of the e-mail ids, separated by
semi-colons.

From the Help file:

DoCmd.SendObject acSendTable, "Employees", acFormatXLS, _
"Nancy Davolio; Andrew Fuller", "Joan Weber", , _
"Current Spreadsheet of Employees", , False
 
T

Tom Glasser

Hi Daniel,

That works. Thanks!

Tom


Daniel Pineault said:
Nothing could be simpler.

DoCmd.SendObject.

Look it up in the help file of all the details and examples.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top