Bold & Italic formating in ltr

J

Jenner

I have a letter where some of the words within the text
box for a paragraph needs to be formatted bold & italics
while a field included in the letter needs to be bold.
All other text is the default. How can I format these
within the overall text box for bold and italics?

I did it with currency as: ="Thank you for your donation
of "&Format([DepositAmount],"Currency")"

Thx
 
S

Stephen Lebans

You cannot accomplish mixed formatting within the standard Access
TextBox control. You will require a Rich Text ActiveX control. Further
if the data already exists you would have to programmatically, or more
likely, manually format the data within the Rich TextBox control and
save each record.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
J

Jenner

But if I can do it within the same text box for dates and
currency, why not text?
-----Original Message-----
You cannot accomplish mixed formatting within the standard Access
TextBox control. You will require a Rich Text ActiveX control. Further
if the data already exists you would have to programmatically, or more
likely, manually format the data within the Rich TextBox control and
save each record.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


Jenner said:
I have a letter where some of the words within the text
box for a paragraph needs to be formatted bold & italics
while a field included in the letter needs to be bold.
All other text is the default. How can I format these
within the overall text box for bold and italics?

I did it with currency as: ="Thank you for your donation
of "&Format([DepositAmount],"Currency")"

Thx

.
 
S

Stephen Lebans

Jenner I have given you the only answer that is possible to solve your
issue. If you don't like it, well sorry, but there is nothing I can do
about it.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


Jenner said:
But if I can do it within the same text box for dates and
currency, why not text?
-----Original Message-----
You cannot accomplish mixed formatting within the standard Access
TextBox control. You will require a Rich Text ActiveX control. Further
if the data already exists you would have to programmatically, or more
likely, manually format the data within the Rich TextBox control and
save each record.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


Jenner said:
I have a letter where some of the words within the text
box for a paragraph needs to be formatted bold & italics
while a field included in the letter needs to be bold.
All other text is the default. How can I format these
within the overall text box for bold and italics?

I did it with currency as: ="Thank you for your donation
of "&Format([DepositAmount],"Currency")"

Thx

.
 
R

Rick Brandt

Jenner said:
It's not that I'm challenging your answer but trying to
understand the programming logic being applied that
allows different formats to sometimes be applied. Is it
because it is text while the other examples used are
dates and currency? Understanding the logic helps me
better understand the limitations.

These are completely different issues. The formatting options that change the
appearance depending on the data when displaying numbers is based on a property of
the data in the control in its entirety. If the number is positive use this
formatting, if zero use this, if negative use this, etc.. While the format can
change for various values in the control, the formatting is still applied to all of
the data. That is not the same as having a long string of text in a TextBox and
trying to have Access look for particular words in the control and apply specific
formatting to only those words.
 

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