ThomasLafferty
Instructor
Hey everybody -
I am using an Access 2000 form to compose and send an email to Outlook so that I can have a record of it in my db (I use it to report bugs in the database).
Any idea why the message format is plain text even though I have specified rich text format in my code? I checked my default mail format in Outlook, and it's set to rtf. When I compose a new email straight in Outlook, the message is rtf, when I do it from my form, it's plain text. I can edit it, but if it doesn't come up rtf, I know my user won't bother. Any ideas? Here's my code:
Any suggestions would be appreciated.
Tom
Born once die twice; born twice die once.
I am using an Access 2000 form to compose and send an email to Outlook so that I can have a record of it in my db (I use it to report bugs in the database).
Any idea why the message format is plain text even though I have specified rich text format in my code? I checked my default mail format in Outlook, and it's set to rtf. When I compose a new email straight in Outlook, the message is rtf, when I do it from my form, it's plain text. I can edit it, but if it doesn't come up rtf, I know my user won't bother. Any ideas? Here's my code:
Code:
[COLOR=blue]Private Sub[/color] btnSendBugReport_Click()
[COLOR=blue]On Error GoTo[/color] Err_btnSendBugReport_Click
[COLOR=green]'*****VARIABLE DECLARATION*****[/color]
[COLOR=blue]Dim[/color] strEmailBody [COLOR=blue]As String[/color], strAdminEmail, strSubject
[COLOR=green]'Get body of email text from control on form[/color]
Me.BugDescription.SetFocus
strEmailBody = Me.BugDescription.Text
[COLOR=green]'Get current admin email from table[/color]
strAdminEmail = DLookup("[AdminEmail]", "tblAdminContactInfo")
[COLOR=green]'Set the email subject line[/color]
strSubject = "RateEngine1.0 Bug Report"
[COLOR=green]'Launch Outloook and send email, allow message edits, dismiss form[/color]
DoCmd.SendObject acSendNoObject, , acFormatRTF, strAdminEmail, , , strSubject, strEmailBody, True
DoCmd.Close
Exit_btnSendBugReport_Click:
[COLOR=blue]Exit Sub[/color]
Err_btnSendBugReport_Click:
MsgBox Err.Description
[COLOR=blue]Resume[/color] Exit_btnSendBugReport_Click
[COLOR=blue]End Sub[/color]
Any suggestions would be appreciated.
Tom
Born once die twice; born twice die once.