查询“或”需要帮助。 [英] Query "or" help needed.

查看:60
本文介绍了查询“或”需要帮助。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Access 2003中,我有一个查询,它会弹出使用[Enter Emp#]和[Enter Task Type]的用户询问两个参数。但是,如果TaskType保留为空,我需要查询返回Emp#的所有任务。我试过In在查询的部分或者部分,但是返回了所有emp#s的所有记录....除非我使用不正确。


Thxs求助。

解决方案

尝试这样的事情。

展开 | 选择 | Wrap < span class =codeDivider> | 行号



尝试这样的事情。

展开 | 选择 | Wrap | 行号


干净的想法,但我会使用LIKE代替''=''。

展开 | 选择 | Wrap | 行号

In Access 2003 I have a query where it asks the user for two parameter using [Enter Emp #] and [Enter Task Type] pop up. However, I need for the query to return all tasks for the Emp# if TaskType is left blank. I tried "In" in the or section of the query, but that returned all records for all emp#s....unless I used incorrectly.

Thxs for help.

解决方案

Try something like this.

Expand|Select|Wrap|Line Numbers


Try something like this.

Expand|Select|Wrap|Line Numbers


Neat idea but I''d use the LIKE in place of the ''=''.

Expand|Select|Wrap|Line Numbers


这篇关于查询“或”需要帮助。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆