
Originally Posted by
zashaikh
strCriteria = "FindAllWords(ARTICLE,""" & Me.txtAllKeywords & """)"
Also, can someone explain to be what the triple quotation marks mean after ARTICLE and txtAllkeywords? Or does it have something to do with the search module that I downloaded for this?
I would have thought that syntax would not work for I understood the syntax to be (when using this form of quotation)
strCriteria = "FindAllWords(ARTICLE,"""" & Me.txtAllKeywords & """")" as this might be explained by saying Access sees the second double quote and says, 'that's the end of the string - oh wait, here's a 3rd one so it's not. Then the fourth, which tells it that it IS the end, so what's left is the 3rd double quote. The result is that it's interpreted as (I'll substitute the field or control for a value) strCriteria = "FindAllWords(ARTICLE,"Invoicing")". I guess the way you've written it provides a double quote around the field value if you say it works. Often, it's written this way strCriteria = "FindAllWords(ARTICLE, '" & Me.txtAllKeywords & "')" to avoid confusion and accidentally dropping a double quote. In case you don't know, text values in expressions must be enclosed in either single or double quotes depending on the expression being created. Dates have their own delimiter (#). The reason I speculate on your method is that I only have ever used the latter method.
If the first answer solves your issue, great. If not, post back 'cause I don't know what FindAllWords is in Access 2016 (looks like a custom function to me) so I can't see how the answer will get you to filter your subforms
. Hope it works for you though.
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.