从一个过程携带一个字符串到另一个过程 [英] Carry a String from one procedure to another
本文介绍了从一个过程携带一个字符串到另一个过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好 -
我有一个名为f_ReportsDashboard的表单,其中包含几个下拉列表,用于为报告生成一系列标准值。
使用下面的代码,我可以在一个独立的过程中成功生成 strCriteria 。
Hello -
I have a form called f_ReportsDashboard with several dropdowns that I use to generate a string of criteria values for reports.
Using the code below, I can succesfully generate the strCriteria in a stand-alone procedure.
展开 | 选择 < span class =codeDivider> | Wrap | 行号
推荐答案
我猜这段代码在标准模块中;因此,
第1行
私密改为公众
-z
I am guessing this code is in a standard module; thus,
Line 1
Change Private to Public
-z
感谢您的快速回复。
我尝试更改为 Public Sub ReportFilters()但我收到运行时错误''3219''无效操作第二个程序出错。
Sandra
Thanks for the quick reply.
I tried changing to Public Sub ReportFilters() but I get a Run-time error ''3219'' Invalid Operation error on the second procedure.
Sandra
第二个程序中哪一行发生这种情况?
是否在第二个程序中调用时,strCriteria在立即窗口中正确评估吗?
{{{EDIT}}}
发布strCriteria,因为它在即时窗口所以我们也可以把它分开;-)
-z
Which line in the second procedure does this occur?
Does the strCriteria evaluate correctly in the Immediate window when called in the second procedure?
{{{EDIT}}}
Post the strCriteria as it evaluates to in the immediate window so we can disect it too ;-)
-z
这篇关于从一个过程携带一个字符串到另一个过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文