Skip to content
Artwork for Computer Learning Zone
Computer Learning Zone · Yesterday · 16 min

Highlight Search Matches Inside Microsoft Access Text Boxes

Conditional formatting can flag an entire field, but that is not much help when a long notes box contains several paragraphs. In this episode, Richard Rost shows how to highlight every occurrence of a search word or phrase inside a Microsoft Access text box without changing the original table data. The discussion uses VBA, rich text controls, HTML-style formatting tags, and the Replace function to create a separate display field with highlighted matches. It also covers why quote handling matters, how case can affect displayed search text, and why this approach is especially useful for large plain-text notes fields. Richard also explains important limitations, including complications with existing rich-text formatting and why an unbound rich-text display does not behave correctly in continuous forms.

0:00-16:58

transcript

No transcript — this publisher did not publish one.

show notes

Conditional formatting can flag an entire field, but that is not much help when a long notes box contains several paragraphs. In this episode, Richard Rost shows how to highlight every occurrence of a search word or phrase inside a Microsoft Access text box without changing the original table data.

The discussion uses VBA, rich text controls, HTML-style formatting tags, and the Replace function to create a separate display field with highlighted matches. It also covers why quote handling matters, how case can affect displayed search text, and why this approach is especially useful for large plain-text notes fields.

Richard also explains important limitations, including complications with existing rich-text formatting and why an unbound rich-text display does not behave correctly in continuous forms.