E
efandango
I want to send emails that include some fields and additonally ask a relevant
question relating to the fields.
I can automatically include the fields in the email body message; but I also
want to select the relevant question from a pre-defined combo list?.
I suspect that because of the limit on parameters for the SendObject
command, I may have to combine the selected question with the output of the
fields. I don’t mind if this is the case, but need some help on how to do the
question selection routine and how to merge the question into the ‘MyMessage’
String.
This is the code I have that will send a ‘fixed message’ to an email
recipient.
Private Sub btn_Email_Point_Request_Click()
Dim SendTo As String, MySubject As String, MyMessage As String
SendTo = "(e-mail address removed)"
MySubject = "Information Required"
MyMessage = "Where Would I find the answer?" & vbCrLf & vbCrLf & Me.[Field1]
& " " & Me.[Field2] & " " & Me.[Field3]
DoCmd.SendObject acSendNoObject, , , SendTo, , , MySubject, MyMessage, True
question relating to the fields.
I can automatically include the fields in the email body message; but I also
want to select the relevant question from a pre-defined combo list?.
I suspect that because of the limit on parameters for the SendObject
command, I may have to combine the selected question with the output of the
fields. I don’t mind if this is the case, but need some help on how to do the
question selection routine and how to merge the question into the ‘MyMessage’
String.
This is the code I have that will send a ‘fixed message’ to an email
recipient.
Private Sub btn_Email_Point_Request_Click()
Dim SendTo As String, MySubject As String, MyMessage As String
SendTo = "(e-mail address removed)"
MySubject = "Information Required"
MyMessage = "Where Would I find the answer?" & vbCrLf & vbCrLf & Me.[Field1]
& " " & Me.[Field2] & " " & Me.[Field3]
DoCmd.SendObject acSendNoObject, , , SendTo, , , MySubject, MyMessage, True