Hi all,
I have the below code to create an email via access and insert a table that is converted to rtf format for sending.
When it is converted to rtf, the table lines are not visible any more. What can I change in the code to make the lines visible?
HTML
Option Compare Database
Private Sub Command11_Click()
Dim oApp As Outlook.Application
Dim oMail As MailItem
Set oApp = CreateObject("Outlook.application")
Set oMail = oApp.CreateItem(olMailItem)
oMail.HTMLBody = "<html><body><p>Dear reader,</p><p>Please find below information on the letter.</p>" & "<p>Any queries please let us know</p><p>Regards</p><TABLE border=2><TR><TD>Rating:</TD><TD>1</TD></TR><TR><TD>BIN:</TD><TD>1234567</TD></TR><TR><TD>Company name:</TD><TD>Something Ltd.</TD></TR><TR><TD>Status:<TD>New</TD></TABLE> "
oMail.Subject = "Status on case with BIN nr: "
oMail.To = "Doodle, Jhon"
oMail.BodyFormat = 3
oMail.Display
Set oMail = Nothing
Set oApp = Nothing
End Sub
Display More
Greetings.