Hey folks,
Using the following code I am creating an e-mail (Outlook) from a form.
The issue I want to resolve is in the Subject line. As can be seen in the code, the Subject Line (code highlighted) of the e-mail will have "Patient Note:" in it. I would like to add the last name of the patient from a text box on the form.\
I cannot figure out the proper syntax to have both.
Help if you can!!
Thanks!!
Private Sub Command0_Click()
If IsNull(Me.Send_to_box) Then
MsgBox "There is no email address."
Else
DoCmd.SendObject , , "RichTextFormat(*.rtf)", Me.Send_to_box, Me.CC_box, , "Patient Note:", Contact_Note, True, ""
End If
Close
End Sub
Using the following code I am creating an e-mail (Outlook) from a form.
The issue I want to resolve is in the Subject line. As can be seen in the code, the Subject Line (code highlighted) of the e-mail will have "Patient Note:" in it. I would like to add the last name of the patient from a text box on the form.\
I cannot figure out the proper syntax to have both.
Help if you can!!
Thanks!!
Private Sub Command0_Click()
If IsNull(Me.Send_to_box) Then
MsgBox "There is no email address."
Else
DoCmd.SendObject , , "RichTextFormat(*.rtf)", Me.Send_to_box, Me.CC_box, , "Patient Note:", Contact_Note, True, ""
End If
Close
End Sub