Private Sub txtSearch_Change()
' get term
Dim x As String
x = Me.txtSearch.Text
' show results
If Len(x) > 0 Then
Me.txtResults.ControlSource = "=Replace([TheField], '" & x & "', '<font style=""BACKGROUND-COLOR:#ffff00"">" & x & "</font>')"
Else
Me.txtResults.ControlSource = ""
End If
' stay in textbox
Me.txtSearch.SetFocus
Me.txtSearch.SelStart = Len(Me.txtSearch.Text) + 1
End Sub