Home > database >  Bold or italicize section of text in MS Access report text box
Bold or italicize section of text in MS Access report text box

Time:07-20

Is there anyway to make a section of text in a report text box stand out? It can be bold, italicized, underlined, highlighted.. Anything to make it stand out more than the rest of the text in the same text box.

The text to be manipulated would be enclosed with *** on both sides.

I am on MS Access for Office 365 - 16.0.10730.20264 32bit

CodePudding user response:

enter image description here

The code behind that button is here.

Private Sub Command20_Click()
    Me.Text18.Value = Me.Text15.Value
End Sub

The Text15 is the Rich Text Box and the Text18 is plain text. When you go to set the value of the rich text box in code (Text15 in this example) you'll need to write out exactly to what you see in the right depending on what you need.

  • Related