使用多个字段来搜索表 [英] Using mulitiple fields to search a table

查看:78
本文介绍了使用多个字段来搜索表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将表单设置为搜索页面。用户需要能够按3个条件搜索:组名,组号或CruiseLine和SailDate。我的问题在于CruiseLine和SailDate。如果我只使用CruiseLine它可以工作,如果我只使用SailDate它可以工作,但当我使用两者时我得到类型不匹配错误!这是我的代码:

I have a form set up as a search page. The user needs to be able to search by 3 criteria: Group Name, Group Number, or CruiseLine AND SailDate. My problem is with CruiseLine AND SailDate. It works if i just use CruiseLine and it works if i just use SailDate, but i get type mismatch error when i use both! Here is my code:

展开 | 选择 | Wrap | 行号

推荐答案


我将表单设置为搜索页面。用户需要能够按3个条件搜索:组名,组号或CruiseLine和SailDate。我的问题在于CruiseLine和SailDate。如果我只使用CruiseLine它可以工作,如果我只使用SailDate它可以工作,但当我使用两者时我得到类型不匹配错误!这是我的代码:

I have a form set up as a search page. The user needs to be able to search by 3 criteria: Group Name, Group Number, or CruiseLine AND SailDate. My problem is with CruiseLine AND SailDate. It works if i just use CruiseLine and it works if i just use SailDate, but i get type mismatch error when i use both! Here is my code:

展开 | 选择 | Wrap | 行号


无法正常工作。仍然是类型不匹配错误。
that didn''t work. Still a type mismatch error.



无法正常工作。仍然是类型不匹配错误。
that didn''t work. Still a type mismatch error.



现在看起来像什么?

What''s it look like now?


这篇关于使用多个字段来搜索表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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