在查询表单上使用文本框中的多个字段条件 [英] Using multiple field criteria from textboxs on Query form

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

问题描述

向智者的世界问好,


我是TRU的CSOM学生。我正在尝试设计一个数据库来提高我的理解力。


我遇到的问题是设置查询。我有一个查询表单,它有多个控件来缩小查询结果。


我正在寻找的功能是允许用户在每个文本框中输入文本,或者将文本输入到成对或无成员中。每个文本框对应一个表中的一个字段。


我试过:


喜欢''[Forms]![ReportPage]![ StatusTextbox]''& ''''输入对应于Status字段的标准行。


我也尝试使用doulbe引号()而不是单引号('')。


如果我在每个文本框中都有信息,则返回查询执行完美。如果我将一个文本框留空,则不会返回任何结果。


我是一个新的访问权限,但我确实有一些VB 2005的知识。


一旦我有正确的格式,我就可以将它应用到每个领域


任何输入都将非常感激。


先谢谢

Hello to the world of the wise,

I am a CSOM student at TRU. I am trying to design a database to improve my understanding.

The problem I am having is with setting up a query. I have a Query Form that has multilple controls to narrow the results of the query.

The functionality I am looking for is to allow a user to enter text into each of the textboxes or into couple or into none. Each textbox corresponds to a field in a Table.

I have tried:

Like ''[Forms]![ReportPage]![StatusTextbox]'' & ''*'' entered in a criteria line corresponding to the Status field.

I have also tried using doulbe quotes ( " ) instead of the single quotes ( '' ).

If I have information in each text box it returns the query executes perfectly. If I leave one textbox blank, no results are returned.

I am reletively new with access, but I do have some VB 2005 knowledge.

Once I have the correct format I will be able to apply it to each field

Any input would be greatly appreciated.

Thanks in advance

推荐答案


你好世界的明智的,


我是TRU的CSOM学生。我正在尝试设计一个数据库来提高我的理解力。


我遇到的问题是设置查询。我有一个查询表单,它有多个控件来缩小查询结果。


我正在寻找的功能是允许用户在每个文本框中输入文本,或者将文本输入到成对或无成员中。每个文本框对应一个表中的一个字段。


我试过:


喜欢''[Forms]![ReportPage]![ StatusTextbox]''& ''''输入对应于Status字段的标准行。


我也尝试使用doulbe引号()而不是单引号('')。


如果我在每个文本框中都有信息,则返回查询执行完美。如果我将一个文本框留空,则不会返回任何结果。


我是一个新的访问权限,但我确实有一些VB 2005的知识。


一旦我有正确的格式,我就可以将它应用到每个领域


任何输入都将非常感激。


先谢谢
Hello to the world of the wise,

I am a CSOM student at TRU. I am trying to design a database to improve my understanding.

The problem I am having is with setting up a query. I have a Query Form that has multilple controls to narrow the results of the query.

The functionality I am looking for is to allow a user to enter text into each of the textboxes or into couple or into none. Each textbox corresponds to a field in a Table.

I have tried:

Like ''[Forms]![ReportPage]![StatusTextbox]'' & ''*'' entered in a criteria line corresponding to the Status field.

I have also tried using doulbe quotes ( " ) instead of the single quotes ( '' ).

If I have information in each text box it returns the query executes perfectly. If I leave one textbox blank, no results are returned.

I am reletively new with access, but I do have some VB 2005 knowledge.

Once I have the correct format I will be able to apply it to each field

Any input would be greatly appreciated.

Thanks in advance



好​​奇,但这个特殊形式有多少个字段?我已经遇到这种情况了一段时间后会看看我是否可以得到它的具体信息。


Just curious, but how many fields are there for this particulary form? I have run into this situation some time back and will look to see if I can get specifics on it.



只是很好奇,但是如何这个特殊的形式有很多领域吗?我在一段时间后遇到了这种情况,并会看看我是否可以获得具体信息。
Just curious, but how many fields are there for this particulary form? I have run into this situation some time back and will look to see if I can get specifics on it.



我有:

- 日期开始文本框

- 日期结束文本框

- 状态文本框

- 位置组合框

- 类型组合框

- 产品#TextBox

- 型号名称Combobox

I have a :
- Date Start Textbox
- Date End Textbox
- Status Textbox
- Location Combobox
- Type Combobox
- Product # TextBox
- Model Name Combobox



我有一个:

- 日期开始文本框

- 日期结束文本框

- 状态文本框

- 位置组合框

- 类型组合框

- 产品#TextBox
- 型号名称Combobox
I have a :
- Date Start Textbox
- Date End Textbox
- Status Textbox
- Location Combobox
- Type Combobox
- Product # TextBox
- Model Name Combobox



1最后一个问题(对不起,我应该把它包含在原帖中)。是一个表中的所有数据还是分布在多个表中?

1 last question (sorry, I should have included it in the original post). Is all the data in one table or spread across multiple tables?


这篇关于在查询表单上使用文本框中的多个字段条件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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