partial text formatting?

jenntheblond

Registered User.
Local time
Today, 23:53
Joined
May 9, 2001
Messages
15
Does anyone know any way to say, bold only one word of a text or memo field? I currently have a report which makes paragraphs from combining multiple text fields, and I need to make one part of it bold. Is there a way to do this in VB?

If not, I have another option. The part I needed bolded is a field on its own ([date due]). If i could find a way to format the paragraph so that the [date due] field was separate from the other fields, I could just bold the field itself. The paragraph field looks something like: =[line4] & " " & [date due] & " " & [line5], where the only part I need bolded is the [date due] portion.

Any ideas?
 
My first observation would be not to concatinate the fileds into one field if possible. I would create 3 seperate fields, which would then allow you to set the text formating properties on them individually.
 
With some incredibly complex work, you might be able to simulate this action for a fixed word that is always in a fixed position in your display. However, to the best of my knowledge, in an arbitrary text string where an arbitrary word is to be emboldened, the answer is 'categorically not.'

The reason you can't do this is because you are asking Access to do something it was not designed to do. You are asking it to treat a sub-component of a single field in a way that you do not treat the rest of the field. And that is not permitted. You can make the whole field bold or not bold, but selectivity within the field is not within the rules. It becomes particularly difficult to even simulate if the sub-component differs in content, position, and size from one instance of that field to the next. Worse yet if it is optional that a word be emboldened at all.

My best advice is to give this up in Access right away before you drive yourself totally bonkers. It ain't gonna work. All you'll do is frustrate yourself and get teed off at Access 'cause it won't do what you want it to do.

You can do SOMETHING like this in Word, but how you would get Word to do it is ALSO tricky. I would advice caution in attempting something like this.

How about making the word you want to emphasis come out in all capital letters? That would make it stand out, but that would not violate Access rules at all.
 
UCase won't work for this particular thing (its a date, you can't really upper-case a date), and I thought about the separate fields thing, but I don't think that will work either because it needs to flow and the [line5] or [line6] fields might vary in size, so I can't preset the field sizes. If CanGrow/CanShrink also grew/shrunk horizontally, that would work, but they don't.
 
Hi ya!

I ran across this problem, here is an example database that helped me out quite a bit.

Hope this helps.

Ken
 

Attachments

I had to mess with that quite a bit to suit my needs, but it worked! Thanks so much!
 
For Reports only, an elegant solution is given at Lebans.com site, the author has written the "Lady" application which you can freely download.
Maybe this can help you
gki
 

Users who are viewing this thread

Back
Top Bottom