Hello all,
I've tried fixing this to no avail. I'm hoping someone here can help me. I have a button that is on a form that will send an e-mail based on some selections on this form. What I need to have it do is send an e-mail to every rep that has a checkbox. Please see below code. As it stands right now, it will only send an e-mail to the selected rep, not to whoever I have selected in the checkbox. Any help would be GREATLY appreciated!!!
Private Sub Command41_Click()
On Error GoTo ErrorHandler
Dim strToWhom As String
Dim strSubject As String
strSubject = Forms!main_menu!class_select & " Training Class"
strToWhom = Me.multi_selection_nt_main_subform.Form!email
DoCmd.SendObject , , , strToWhom, , , strSubject, , True
Exit Sub
ErrorHandler:
Select Case Err.Number
Case 2501
Resume Next
Case Else
MsgBox "Err " & Err.Number & ": " & Err.Description
End Select
End Sub
I've tried fixing this to no avail. I'm hoping someone here can help me. I have a button that is on a form that will send an e-mail based on some selections on this form. What I need to have it do is send an e-mail to every rep that has a checkbox. Please see below code. As it stands right now, it will only send an e-mail to the selected rep, not to whoever I have selected in the checkbox. Any help would be GREATLY appreciated!!!
Private Sub Command41_Click()
On Error GoTo ErrorHandler
Dim strToWhom As String
Dim strSubject As String
strSubject = Forms!main_menu!class_select & " Training Class"
strToWhom = Me.multi_selection_nt_main_subform.Form!email
DoCmd.SendObject , , , strToWhom, , , strSubject, , True
Exit Sub
ErrorHandler:
Select Case Err.Number
Case 2501
Resume Next
Case Else
MsgBox "Err " & Err.Number & ": " & Err.Description
End Select
End Sub