Had an idea that I just had to check out. Turns out you can call a function in a cf expression. I was able to pass the control to the function and detect a CRLF (a cr alone isn't really the same AFAIK). Anyway this worked:
Code:
Function IsMultiLine(ctl As Control) As Boolean
Dim strTest As String
strTest = ctl
IsMultiLine = Len(ctl) - Len(Replace(ctl, vbCrLf, ""))
End Function
The cf expression is IsMultiLine(Forms!tblLicenses.caseNo)
I found that the function won't get called if you use Me. or only the control name. Only one record had a new line; only one record was highlighted
Forgot to say that the assignment to the function works because, as we've been discussing elsewhere, anything other than 0 is true.
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.