Some if-then-else logic would probably work so that when you search for “Blah Blah Labor Blah” in the title the search is actually for:
(Title = “Blah Blah Labor Blah”) OR (Title = “Blah Blah Labour Blah”)
The solution I came up with is simpler, though not perfect. I run the search string through a function which replaces both “labor” and “labour” with “labo*r”. The wildcard will then match both “labor” and “labour”.
Public Function Authority(strKey1 As String)
strKey1 = Replace(strKey1, "labor", "labo*r")
strKey1 = Replace(strKey1, "labour", "labo*r")
strKey1 = Replace(strKey1, "employee", "employe*")
strKey1 = Replace(strKey1, "employe", "employe*")
Authority = strKey1
End Function
No comments:
Post a Comment