SendObject with multiple objects



I want to send a report in 2 different formats (SNP and HTML) in a single
With the following code I can send a single file, but I do not know how to
add the second attachment in the same mail:

DoCmd.OpenReport "Rpt_test", acViewPreview, ,
DoCmd.SelectObject acReport, "Rpt_test"
DoCmd.SendObject acSendReport, "Rpt_test", acFormatSNP, , , , "Test
fileâ€, "Attached is a test file", True
DoCmd.Close acReport, "Rpt_test", acSaveNo

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