1Function HighlightRecord(frm As Form, ctl As Control) 2Dim sName As String 3sName = ctl.Name 4 5frm.TextHighlight.ControlSource = _ 6"=iif([" & sName & "]='" & ctl.Value & "','Yes','No')" 7 8End Function
1. Create an unbound text box (set it's visible property to 'No') 2. Name it 'TextHighlight' 3. Place above code in the Current event of a continuous form. Example: HighlightRecord Me, Me.ID 4. Apply conditional formatting based on 'TextHighlight' value