How to format part of a control

  • Thread starter Thread starter Bill F
  • Start date Start date
B

Bill F

Does anyone know if it's possible to Bold only part of a
control (field) in a report. Example: I have three text
fields that have been combined into one control such as
[First name]+" "+[Middle name]+" "+[Last name]. I would
like to bold the (Middle name) part of the control.
I could use three separate controls and bold only the
middle control if it were possible to automatically
adjust the controls width to fit the text length with
only one space between words in the name. Is any of this
possible?
Thanks in advance!
 
Does anyone know if it's possible to Bold only part of a
control (field) in a report. Example: I have three text
fields that have been combined into one control such as
[First name]+" "+[Middle name]+" "+[Last name]. I would
like to bold the (Middle name) part of the control.
I could use three separate controls and bold only the
middle control if it were possible to automatically
adjust the controls width to fit the text length with
only one space between words in the name. Is any of this
possible?
Thanks in advance!

Not unless you have added a Rich Text Format control to your database.
See
http://www.lebans.com
for Steven Lebans free version.
 
In the OP's case, where he has three seperate fields and it seems to be
a single line solution, I would reccommend bolding the desired control
seperately. Use the fTextWidthHeight function on my site to
automatically size the controls as per their current contents.
http://www.lebans.com/textwidth-height.htm

Or since the OP only requires a Report based solution they could also
use:
http://www.lebans.com/mixbold-plain.htm
Lady.zip is a database containing functions to allow the developer to
mix Bold and Plain formatting within a single Control. Demonstrates how
to use the Print method of the Report object
--

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


fredg said:
Does anyone know if it's possible to Bold only part of a
control (field) in a report. Example: I have three text
fields that have been combined into one control such as
[First name]+" "+[Middle name]+" "+[Last name]. I would
like to bold the (Middle name) part of the control.
I could use three separate controls and bold only the
middle control if it were possible to automatically
adjust the controls width to fit the text length with
only one space between words in the name. Is any of this
possible?
Thanks in advance!

Not unless you have added a Rich Text Format control to your database.
See
http://www.lebans.com
for Steven Lebans free version.
 
Back
Top