Trying to create a code that will search a word contained in a field...
see code below: What am I missing? It returns blank.
see code below: What am I missing? It returns blank.
Code:
' If Name
If Nz(Me.Mname) <> "" Then
'Add it to the predicate - exact match
strWhere = strWhere & " AND " & "USERS.USER_NAME LIKE ' * " & Me.Mname & " * '"
End If