S
SoggyCashew
Hello, I have a table named tblEmail and in this table there are email
addresses. I wanted to be able to send a report using the email addresses
from theis table insted of using it in VBA incase the list changes. I am
using the code below and it works good but I would like to get the names from
the table? How can I do this...
Private Sub cmdSendTo_Click()
On Error GoTo Err_cmdSendTo_Click
DoCmd.SendObject acReport, "Accident Illness Report", acFormatRTF,
"(e-mail address removed); (e-mail address removed); (e-mail address removed)", , , "New Accident
Illness Report", "Please review the attached report. Thanks!", False
Exit_cmdSendTo_Click:
Exit Sub
Err_cmdSendTo_Click:
MsgBox Err.Description
Resume Exit_cmdSendTo_Click
End Sub
addresses. I wanted to be able to send a report using the email addresses
from theis table insted of using it in VBA incase the list changes. I am
using the code below and it works good but I would like to get the names from
the table? How can I do this...
Private Sub cmdSendTo_Click()
On Error GoTo Err_cmdSendTo_Click
DoCmd.SendObject acReport, "Accident Illness Report", acFormatRTF,
"(e-mail address removed); (e-mail address removed); (e-mail address removed)", , , "New Accident
Illness Report", "Please review the attached report. Thanks!", False
Exit_cmdSendTo_Click:
Exit Sub
Err_cmdSendTo_Click:
MsgBox Err.Description
Resume Exit_cmdSendTo_Click
End Sub