S
Swordfish
Hello
I am trying to figure out what I might be doing wrong. I am trying to send
an email to a name selected with a Combo Box which has a query/table noted
below. Additionally, I was trying to get the field information from DataTrak
Number to enter into the message. When I click on the Email icon nothing
happens. Any assistance would be greatly appreciated.
Private Sub Lotus_Notes_Email_Click()
Dim LResponse As Integer
LResponse = MsgBox("Do you wish to continue?", vbYesNo, "Continue")
If LResponse = vbYes Then
Dim SendTo As String, MySubject As String, MyMessage As String
SendTo = DLookup("[EmailAddress],""tblBenefitsEmployee")
MySubject = "Production Assigned"
MyMessage = "Datatrak Number:" & Me.Datatrak_Number & vbCr
DoCmd.SendObject acSendNoObject, , , SendTo, , , MySubject, MyMessage, True
End If
End Sub
I am trying to figure out what I might be doing wrong. I am trying to send
an email to a name selected with a Combo Box which has a query/table noted
below. Additionally, I was trying to get the field information from DataTrak
Number to enter into the message. When I click on the Email icon nothing
happens. Any assistance would be greatly appreciated.
Private Sub Lotus_Notes_Email_Click()
Dim LResponse As Integer
LResponse = MsgBox("Do you wish to continue?", vbYesNo, "Continue")
If LResponse = vbYes Then
Dim SendTo As String, MySubject As String, MyMessage As String
SendTo = DLookup("[EmailAddress],""tblBenefitsEmployee")
MySubject = "Production Assigned"
MyMessage = "Datatrak Number:" & Me.Datatrak_Number & vbCr
DoCmd.SendObject acSendNoObject, , , SendTo, , , MySubject, MyMessage, True
End If
End Sub