D
Dave
How can I format (Font, bold, font size, font color in an email sent from
access).
Here is some example code I have:
------------------------------------------------------------------------------------------------
Private Sub txtEmail_Click()
Dim InternalEmail As String
Dim AgendaDate As String
Dim Subject As String
Dim ReferenceID As String
Dim CategoryText As String
Dim CodeNumber As String
Dim ReviewTime As String
Dim MAPDandPDP As String
Dim Material As String
stDocName = "frmCommitteeEmail"
DoCmd.OpenForm stDocName, , , stLinkCriteria
InternalEmail = Forms!frmCommitteeEmail!DMEmail
AgendaDate = Forms!frmmain!AgendaDate
ReferenceID = Me.ReferenceID
CategoryText = Me.CategoryText
CodeNumber = Me.CodeNumber
ReviewTime = Me.ReviewTime
MAPDandPDP = Me.MAPDandPDP
Material = Me.Material
Subject = AgendaDate & " " & "-" & " " & ReferenceID
Message = vbLf & _
"Dear Review Committee" & vbLf & vbLf & _
"Please review the attached." & vbLf & vbLf & _
"Reference:" & " " & ReferenceID & vbLf & _
"Functional Area:" & " " & CategoryText & vbLf & _
"Code:" & " " & CodeNumber & vbLf & _
"Review Time:" & " " & ReviewTime & vbLf & _
"Materal:" & " " & Material & vbLf & _
"Purpose" & " " & MAPDandPDP & vbLf & _
"Please review the attached Material." & vbLf & vbLf & _
"Please review the attached Material." & vbLf & vbLf & _
"If you have any questions regarding this program, please contact your
Marketing Communications Representative."
On Error Resume Next
DoCmd.SendObject , "", "", InternalEmail, "", "", Subject, Message, True
DoCmd.Close acForm, "frmCommitteeEmail", acSaveYes
End Sub
----------------------------------------------------------------------------------------
So for example - How can I make "Review Time(ReviewTime) both BOLD and RED?
Any help here will be appreciated.
Thanks in advance
access).
Here is some example code I have:
------------------------------------------------------------------------------------------------
Private Sub txtEmail_Click()
Dim InternalEmail As String
Dim AgendaDate As String
Dim Subject As String
Dim ReferenceID As String
Dim CategoryText As String
Dim CodeNumber As String
Dim ReviewTime As String
Dim MAPDandPDP As String
Dim Material As String
stDocName = "frmCommitteeEmail"
DoCmd.OpenForm stDocName, , , stLinkCriteria
InternalEmail = Forms!frmCommitteeEmail!DMEmail
AgendaDate = Forms!frmmain!AgendaDate
ReferenceID = Me.ReferenceID
CategoryText = Me.CategoryText
CodeNumber = Me.CodeNumber
ReviewTime = Me.ReviewTime
MAPDandPDP = Me.MAPDandPDP
Material = Me.Material
Subject = AgendaDate & " " & "-" & " " & ReferenceID
Message = vbLf & _
"Dear Review Committee" & vbLf & vbLf & _
"Please review the attached." & vbLf & vbLf & _
"Reference:" & " " & ReferenceID & vbLf & _
"Functional Area:" & " " & CategoryText & vbLf & _
"Code:" & " " & CodeNumber & vbLf & _
"Review Time:" & " " & ReviewTime & vbLf & _
"Materal:" & " " & Material & vbLf & _
"Purpose" & " " & MAPDandPDP & vbLf & _
"Please review the attached Material." & vbLf & vbLf & _
"Please review the attached Material." & vbLf & vbLf & _
"If you have any questions regarding this program, please contact your
Marketing Communications Representative."
On Error Resume Next
DoCmd.SendObject , "", "", InternalEmail, "", "", Subject, Message, True
DoCmd.Close acForm, "frmCommitteeEmail", acSaveYes
End Sub
----------------------------------------------------------------------------------------
So for example - How can I make "Review Time(ReviewTime) both BOLD and RED?
Any help here will be appreciated.
Thanks in advance