I want to do a text filter in Access searching for a pattern that incl开发者_运维百科udes a comma. But when I used , or put it in double quotes, Access gave me an error. How do I search for text containing the comma character? Thanks.
First of all, your question is quite unclear. What do you mean by "text filter"? What do you mean by "searching for a pattern"? What kind of error message do you get?
For my answers below, I'm assuming that the data you want to search on is saved in a text field.
SQL allows you to do it like this:
SELECT * FROM CompanyName WHERE CompanyName LIKE '*,*'
If you're using the Access form filter property your filter should look like this:
strFilter = "CompanyName LIKE '*,*'"
精彩评论