参数查询 [英] Parameter Queries

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

问题描述

我想打开一个参数查询,以便它对操作员可见(而不是作为VBA代码中的记录集),但我也想在打开之前设置参数,以便我可以控制操作员从表单运行时看到的内容,但也可以本机运行查询(双击数据库窗口中的querydef对象)并让它请求参数。 />

这可能吗?


PS。如果有任何不清楚的地方,请要求澄清。

I would like to open a parameter query so that it''s visible to the operator (not as a recordset in the VBA code) but I also want to set the parameters before it''s opened so that I can control what the operator sees when it''s run from a form, but so that it''s also possible to run the query natively (double-click the querydef object from the database window) and have it ask for the parameters.

Is this possible?

PS. Please request clarification if anything is not clear.

推荐答案

参数查询的示例(用于说明)将是:
An example of a parameter query (for illustration) would be :
展开 < span class =codeDivider> | 选择 | Wrap | Line数字


试试这个...

Try this ...


展开 | 选择 | Wrap | 行号


知道Mary(关于重命名参数)是有用的,但我真的在提供我已经知道的代码中的值,然后打开PARAMETER SELECT查询以与操作员完全交互。


我可以使用以下代码在代码中设置PARAMETER值:
That''s useful to know Mary (about renaming parameters), but I''m really after supplying the values in code that I already know, before then opening the PARAMETER SELECT query for full interaction with the operator.

I can set a PARAMETER value in code by using the :
展开 | 选择 | Wrap | 行号

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

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