Microsoft Access text boxes can be configured as \"Rich Text\", allowing the user to apply formatting such as bold text or different font sizes. Internally, this \"rich text
If you want an easy way to test combinations of tags, or see which tags Access is using for the rendering, you can create a simple "IDE" concept with a couple text boxes, and a few lines of VBA code.
The box on the left has the source, and the box on the right has the rendered HTML. When you change the text in either box, you see the changes live in both places. On the HTML side, you can use the toolbar to format your text as desired, then review the source on the left side to see which tags Access used.
To create this simple editor, use the following steps:
txtSource
and txtHTML
. Text Format
of the right box to Rich Text
. Enter Key Behavior
to New Line in Field
.[Event Procedure]
for the On Change
event. On the VBA side, add the following lines of code to keep the text in sync:
Private Sub txtHTML_Change()
txtSource = txtHTML.Text
End Sub
Private Sub txtSource_Change()
txtHTML = txtSource.Text
End Sub
Hope that helps someone else out there! :-)