I have a list of names in a field "Collector" that can include the names of others in a team, .e.g. "Jones. K. Smith. W."
I want to filter this field such that it will return all fields that include "Jones" .
I have tried many variations of the code below but .filter always returns "False".
sFilter, in the example above will be "Jones"
if I use this code
.filter returns "[Collector] = '0'"
I want to filter this field such that it will return all fields that include "Jones" .
I have tried many variations of the code below but .filter always returns "False".
sFilter, in the example above will be "Jones"
Code:
.Filter = "[Collector]= " & InStr(.Collector, sFilter) """
if I use this code
Code:
.Filter = "[Collector]= '" & InStr(.Collector, sFilter) & "'"
.filter returns "[Collector] = '0'"