Embolden some parts of string

davedynamic

Registered User.
Local time
Today, 23:36
Joined
Sep 26, 2001
Messages
18
Previous posts have suggested this can not be done, however, I have had some morre thought about it.

The desired outcome is

strA= "Banana"

strZ="Please add 16 " & strA

The objective is to get strA to appear as Bold. Various attempts using FontBold property have amounted to nothing.

I wondered about using Word in some fashion to enable this facility. ANyone got any thoughts?
 
This is not possible with a standard Access control. There are third party controls which do have this capability. I believe that FMS sells one. Check out their website - www.fmsinc.com
 
Thanks for the prompt replies. Lebans site shows a control being emboldened not a string.

What I had some vague thoughts about was passing a value to Word. Processsing the string in word, then placing the word string as an OLE on the report or what have you. Any thoughts?
 
I cannot clearly see what is the difference that you make. If you want to make some part of a string bold, it is because you intend to display that string sooner or later. For this, you will use a control on a form or report.
Where am I wrong?

Alex

[This message has been edited by Alexandre (edited 10-29-2001).]
 
Although you do use a control on the form, if you don't want all the string to be bold, but just some of it, the bolding of a control does not help.
 
as alex suggested, you need to use a control.

put strA and srtZ into 2 controls on your form, with the control for srtA in bold.

by placing them carefully (right justify,left justify) you can give the appearance of one contiguous field...

al
 
Right, pcs' solution is the most simple and usual. If for any reason you would like to use one only control Stephan Leban s solution should do for you. It does not bold a whole control (there would be no need of elaborate code for that!) but, as you seem to want, part of the text in a control.

Alex
 
Thanks for the help guys. However, due to the complexity of messages and the numbers, it appears the simplest solution is to either process in Word, or to use FMS controls.
 
You could also purchase ODE which has a RichText format control shipped with it.
 

Users who are viewing this thread

Back
Top Bottom