need code to bold text or change color of text

T

Tim

Hi folks,

I need a help to bold text or change color of text.

I have the following variable in my automail sub:

mailcontent = "Hello"

I want this variable to be bold and change the color to
red istead of black.

Colud anyone tell me how to do it?

Thanks in advance.

Tim.
 
L

Larry Linson

First, I must assume from the newsgroup in which it is posted that this is a
Microsoft Access database software question.

You can't change the color of a "variable" in Access, because variables do
not have a color. You can change the background color or the color of (all)
the text of a Control such as a Text Box in a Form or Report, by setting the
Text Box's .backcolor or .forecolor properties.

That can be done either manually or programmatically via VBA code.

Clarify if I have misunderstood the question. Ask in an appropriate
newsgroup if this isn't an Access question.

Larry Linson
Microsoft Access MVP
 
T

Tim

Larry,

Thanks for your response. It is a Access question. I
built a sub to send mail. In the sub, I have variables
such as recipient, subject, mailcontent...

I want the mailcontent to be bold in the email.

for example something like this: format("Hello",bold)

I need some code to bold the text if it is possible.

Thanks.

Tim.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top