I have the following vba code to export a form in a pdf file in a E-mail and it al works fine but the emailmsg is not in HTML format is there a way to solve it because this drives me crazy..
Code:
Private Sub Command19_Click()
Dim mailto As String
Dim ccto As String
Dim bccto As String
mailto = ""
ccto = ""
bccto = ""
emailmsg = "Hi,” & vbNewLine & vbNewLine & “Please find the report attached"
mailsub = "Sales Report April-2014?"
On Error Resume Next
'acFormatpdf will export the result of query into pdf format and will add the pdf as attachment
DoCmd.SendObject acSendForm, “sales_detail”, acFormatPDF, mailto, ccto, bccto, mailsub, emailmsg, True
End With
End Sub