How to make bold in Rich Text Box

stu_c

Registered User.
Local time
Today, 04:58
Joined
Sep 20, 2007
Messages
494
Hi all
I have a Rich Text box I need this part in Bold but the rest in standard, how is the best way to do this?

Code:
Me.TxtTextSummary = UCase([Forms]![FRM_TBLALL_FullDetails]![SFRM_TBL_StaffDetails].[Form]![LblComplaintRef]
 
Code:
Me.TxtTextSummary = "<strong>" & UCase([Forms]![FRM_TBLALL_FullDetails]![SFRM_TBL_StaffDetails].[Form]![LblComplaintRef]) & "</strong>"
 
To discover any and all tags used by rich text in MS Access, put a single TextBox on a form, and back it up with code like...
Code:
Private Sub Text0_DblClick(Cancel As Integer)
    Me.Text0.TextFormat = Abs(Me.Text0.TextFormat - 1) ' toggle
    Me.Text0.BorderColor = Me.Text0.TextFormat * vbRed ' indicate
End Sub
• Dbl-click the TextBox to toggle between Plain Text and Rich Text.
• Toggle to Rich Text and format something with the menu.
• Toggle to Plain Text, and the tags are revealed.
 

Users who are viewing this thread

Back
Top Bottom