D
dveer
I want to send a report in 2 different formats (SNP and HTML) in a single
email.
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
email.
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