使用多条件筛选时忽略空值 [英] ignore null value when filtering with multi criteria
本文介绍了使用多条件筛选时忽略空值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个包含4个字段的查询,以及一个基于它的表单。我放了另外4个文本框来获取筛选查询的条件。当所有文本框都具有值(非空)但当其中一个或多个为空(null)时,查询将返回正常运行,查询不返回任何记录。如何在我的标准中忽略(null)。
解决方案
发布完整查询
< blockquote class =post_quotes>
i有一个包含4个字段的查询,以及一个基于它的表单。我放了另外4个文本框来获取筛选查询的条件。当所有文本框都具有值(非空)但当其中一个或多个为空(null)时,查询将返回正常运行,查询不返回任何记录。我怎样才能忽略我的标准中的(null)。
发布完整查询
如何发布查询?
在设计视图中打开查询,然后更改视图按钮以显示SQL。然后只需复制并粘贴代码即可。
如何发布查询?
i have a query with 4 fields, and a form based on it. i put another 4 textbox to get criteria to filter the query. the query runs normally when all the textbox have a value (not null) but when one or more of them is empty (null) the query returns no records. how can i ignore the (null) in my criteria.
解决方案
Post the full query
i have a query with 4 fields, and a form based on it. i put another 4 textbox to get criteria to filter the query. the query runs normally when all the textbox have a value (not null) but when one or more of them is empty (null) the query returns no records. how can i ignore the (null) in my criteria.
Post the full queryhow can i post the query?
Open the query in design view and then change the view button to show SQL. Then simply copy and paste the code here.
how can i post the query?
这篇关于使用多条件筛选时忽略空值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文