Hi! I have a command button built with code to send an email, as such:
-----------------
Private Sub Command271_Click()
DoCmd.SendObject , "", "", "testemail@here.org;test2@here.org", "", "", "New Hire Offer Made", "Good afternoon," & vbCrLf & vbCrLf & "Attached please find the CV for a potential physician hire. I am sending the offer letter/agreement today, but wanted to get this on your radars:" & vbCrLf & vbCrLf & "Employee: " & [PhysicianHired] & vbCrLf & "Dept: " & [Division] & vbCrLf & "Proposed Hire Date: " & [Actual Start Date] & vbCrLf & "Manager: " & [HiringMgr] & vbCrLf & vbCrLf & "Once I receive the signed agreement, I will let you know." & vbCrLf & "Thanks!" & vbCrLf & "Michele"
End Sub
-----------------------------
What I want to do is to be able to pull all the emails from a table (attached) if field "Communication1" is Yes. (vs. having to type all the emails in the code).

Can anyone help me out?
Michele
-----------------
Private Sub Command271_Click()
DoCmd.SendObject , "", "", "testemail@here.org;test2@here.org", "", "", "New Hire Offer Made", "Good afternoon," & vbCrLf & vbCrLf & "Attached please find the CV for a potential physician hire. I am sending the offer letter/agreement today, but wanted to get this on your radars:" & vbCrLf & vbCrLf & "Employee: " & [PhysicianHired] & vbCrLf & "Dept: " & [Division] & vbCrLf & "Proposed Hire Date: " & [Actual Start Date] & vbCrLf & "Manager: " & [HiringMgr] & vbCrLf & vbCrLf & "Once I receive the signed agreement, I will let you know." & vbCrLf & "Thanks!" & vbCrLf & "Michele"
End Sub
-----------------------------
What I want to do is to be able to pull all the emails from a table (attached) if field "Communication1" is Yes. (vs. having to type all the emails in the code).

Can anyone help me out?
