I have following code in a form which triggers an email of a particular report. the problem with this is, for each recipient, we need to run the following macro for each email which then prompts for a particular employee. is it possible to have the ability to generate multiple emails in one click?
Private Sub Mail_Reimbursement_Summary_Click()
On Error GoTo Err_Mail_Reimbursement_Summary_Click
Dim stDocName As String
stDocName = "Tuition Reimbursement Summary Report"
DoCmd.SendObject acReport, stDocName, , , , , "Reimbursement Summary", "Hi, See attached for your recent Course Resimbursement."
Exit_Mail_Reimbursement_Summary_Click:
Exit Sub
Err_Mail_Reimbursement_Summary_Click:
MsgBox Err.Description
Resume Exit_Mail_Reimbursement_Summary_Click
End Sub
Private Sub Mail_Reimbursement_Summary_Click()
On Error GoTo Err_Mail_Reimbursement_Summary_Click
Dim stDocName As String
stDocName = "Tuition Reimbursement Summary Report"
DoCmd.SendObject acReport, stDocName, , , , , "Reimbursement Summary", "Hi, See attached for your recent Course Resimbursement."
Exit_Mail_Reimbursement_Summary_Click:
Exit Sub
Err_Mail_Reimbursement_Summary_Click:
MsgBox Err.Description
Resume Exit_Mail_Reimbursement_Summary_Click
End Sub