We help IT Professionals succeed at work.

Access VBA apply some html text toa text box that is formatted as rich text

Murray Brown
Murray Brown asked
on
Hi

What Access VBA code would I use to apply some text to a text box that is rich text format.
I just want to do a bold header that says "Header Example" followed by some text on a new line for example "and some normal text goes here"
I want to use VBA to apply the text on the form load
Comment
Watch Question

President / Owner CARDA Consultants Inc.
Distinguished Expert 2018
Commented:
Something along the lines of the following should work:
Me.YourRTFControlName = "<div><strong>Header Example</strong><br>and some normal text goes here</div>"

Open in new window

Murray BrownASP.net/VBA/VSTO Developer

Author

Commented:
Thanks again Daniel