Email 2 reports on one button.

D

dbouton

Hello. Someone please assist me. I would like to use a button to output 2
reports to email. I tried the following code but only one report would be
output and attached to the email:
Private Sub Command306_Click()
On Error GoTo Err_Command306_Click
Dim stDocName As String
stDocName = "Report 1"
stDocName = "Report 2"
DoCmd.SendObject acReport, stDocName, acFormatSNP
Exit_Command306_Click:
Exit Sub
Err_Command306_Click:
MsgBox Err.Description
Resume Exit_Command306_Click
End Sub
 

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