underline/bold text in code

how would i manipulate the code to show specific text underlined or bold?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

use "fontbold" property
Me.yourtext.fontbold = true

same for underline -  user fontunderline.

You can only set an entire control to underline, bold or italic, etc.

Me!ctrl.FontItalic = True
Me!ctrl.FontBold = True


I think Brian's comment is the one you're looking for: you can only underline/bold an *entire* control's text. If you're looking to underline or bold one word in a sentence, for instance, you'd either have to use multiple controls (bolding the one with the appropriate word) or a rich-text text box.
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

scorp8Author Commented:
I can't seem to get it to work.  Here's the code I'm trying to update...

This is what I want to see underlined - WR:, Overview:, Current Status:, Estimated Completion Date:, and History...

strTmp = strTmp & rst![ID Number] & " WR:       " & rst![WorkRequested] & LF & "Overview: " & rst![Overview] & LF & "Current Status: " & rst![CurrentStatus] & LF & "Estimated Completion Date: " & rst![EstimatedCompletionDate] & LF & "History: " & rst![History] & LF & LF
Let me say this again:  you can't selectively underline anything within a control.  You can underline the whole thing, or none of it, but that's all.

You say, "I can't seem to get it to work."  Get WHAT to work?

But here is how what you are trying to do is typically done.  Put WR:, Overview:, Current Status:, Estimated Completion Date:, and History into a lable control, and set it's Underlined property to true.

Put rst![ID Number], rst!WorkRequested, rst!Overview, rst!CurrentStatus, rst!EstimatedCompletionDate and rst!History in a text box that is NOT underlined.

Set the justification of the label to Right, and the justification of the textbox to left.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
scorp8Author Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.