underline/bold text in code

how would i manipulate the code to show specific text underlined or bold?
LVL 1
scorp8Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
BrianWrenConnect With a Mentor Commented:
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.

Brian
0
 
rpm97Commented:
use "fontbold" property
Me.yourtext.fontbold = true

same for underline -  user fontunderline.

Rich
0
 
BrianWrenCommented:
You can only set an entire control to underline, bold or italic, etc.

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

Etc.

Brian
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
brewdogCommented:
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.
0
 
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
0
 
scorp8Author Commented:
thanks
0
All Courses

From novice to tech pro — start learning today.