Did you not look at my example, which is super robust and easy to use? I doubt you find a better solution.Thank you for your answers.
What should I do if I want to run an unbound query through the form and different colors inserted in the unbound text box are displayed. The mentioned cases and examples are bounded.
How to use the IN operator in the query for the above search.
The text box has one content, and that is a string, solely due to the characters used.But I don't know where the problem is.
strContent = "Blue; pink; Purple"
strContent = Replace(strContent, "; ", Chr(34) & ", " & Chr(34))
strContent = "(" & Chr(34) & strContent & Chr(34) & ")"
Debug.Print strContent
WHERE Instr(1, ";Blue;pink;Purple;", ";" & FieldColor & ";") > 0
' suitable for parameter transfer
WHERE Instr(1, parListing, ";" & FieldColor & ";") > 0
strContent = ";" & Replace(strContent, " ", "") & ";"
Debug.Print strContent