Hello!
I'm trying to create a send via email function that will use specific body template that is also field with the data from the current form that is opened.
Now i'm using the Do.Cmd.Sendobject function but it is very limited as I want to be able to use the BOLD function on certain fields or highlight a text.
Plus I reach the limit of characters and cannot add more fields to the template.
here is the current code:
Any guide will be highly appreciated!
Regards,
Moshes.
I'm trying to create a send via email function that will use specific body template that is also field with the data from the current form that is opened.
Now i'm using the Do.Cmd.Sendobject function but it is very limited as I want to be able to use the BOLD function on certain fields or highlight a text.
Plus I reach the limit of characters and cannot add more fields to the template.
here is the current code:
Code:
Private Sub email_Click()
messageText = "Dear ," & vbCrLf & "Please find the following description for a suspected problem that occurred in " + LocationTxt.Value + " on " + RunwayCombo.Value + " SDU # " + SduCombo.Value + " " + "During Date/Time" & vbCrLf & "The following SR ID# <_>" + "is Opened in the SR Tool-CRM system. Case severity is " + SevirityTxt.Value & vbCrLf & "" & vbCrLf & "Description:" & vbCrLf & Description.Value & vbCrLf & " " & vbCrLf & "Additional*information:" & vbCrLf & Additional*information.Value & vbCrLf & "" & vbCrLf & "Please add resolution below:" & vbCrLf & "" & vbCrLf & "This case is assigned to: " + GsocEmployeeCombo.Value & vbCrLf & "Please keep us updated for the progress of investigation." & vbCrLf & "" & vbCrLf & "Regards," & vbCrLf
Subject = "Escalation"
DoCmd.SendObject , , , , , , Subject, messageText, , ""
End Sub
Any guide will be highly appreciated!
Regards,
Moshes.