在表单中搜索名称 [英] Search in form for name
本文介绍了在表单中搜索名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的数据库名称为Last,First。我想创建一个不要求你用逗号输入整个名字的搜索。我想我想使用一个类似的声明,但是我不能让它工作。
I have the names in my database as Last, First. I want to create a search that doesn''t require you to put in the entire name with a comma. I think I want to use a like statement, but I can''t get it to work.
推荐答案
你有什么尝试?
您尝试过什么?
What have you tried?
如果Me.Insured_Name_2> ""那么_
strFilter = strFilter& _
" AND([保险名称]喜欢''"& _
Me.Insured_Name_2&"'')"
If Me.Insured_Name_2 > "" Then _
strFilter = strFilter & _
" AND ([Insured Name] Like ''" & _
Me.Insured_Name_2 & "'')"
赞使用完全匹配,除非你使用通配符,例如:
Like uses exact matching unless you use a wildcard such as:
展开 | 选择 | Wrap | 行号
这篇关于在表单中搜索名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文