开发者

Microsoft Access: How do I enter a comma in text filtering?

开发者 https://www.devze.com 2023-03-13 19:43 出处:网络
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.

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 '*,*'"
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号