Bold within email body generated within Access

Ross Hurrell

Registered User.
Local time
Today, 16:16
Joined
Nov 17, 2006
Messages
11
Hey, I was wondering how I would tell Access to set bold on my email message. I use this code to generate the email:


Private Sub Email_Click()

strToWhom =

strMsgBody = "This is my email body, I would like [B]this[/B] word bold"

DoCmd.SendObject , , , strToWhom, , , "Subject", strMsgBody, True

End Sub[/QUOTE]

Thanks for any help provided.
 
Last edited:
Access is not a word processor. BOLD is an aspect of word-processor files.

You can get the desired effect by not building the e-mail using Access (directly). Open the message via Word and manipulate the text attributes that way. Then send the resultant file from Access. Otherwise, there is no easy way to do what you want.

In Access Help, look up Application Objects as the starting point to opening a file via Word from Access VBA code.
 
You can achieve that with Outlook automation, using HTMLBody:

MyMail.HTMLBody = "This is the text <b>bold here</b> not bold here"
 

Users who are viewing this thread

Back
Top Bottom