选择CheckBox打开报告 [英] Select Report to Open by CheckBox

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

问题描述

NeoPa,


我刚刚完成了。你能把另一根骨头扔在我击中的另一个树桩上吗?我有一个表单,其中包含可应用于两个报表的信息。是/否字段区分它将引用的报告类型(例如)。如果我在表单上安装了一个命令按钮,当yes / no字段为yes时,我怎么能得到它(例如)report1包含所有字段数据。


David

NeoPa,

I am just about done. Can you throw me another bone on another stump I hit. I have a form that contains information that can be applied to two reports. A yes/no field distinguishes what type of report it would refer to(for example). If I install a command button on the form how can I get it to got to (for example) report1 with all field data when the yes/no field is yes.

David

推荐答案

此主题已从获取摆脱#Error 线程,因为它是一个单独的问题。


我很高兴发布答案,但我们要求将问题保存到自己的线程中可管理性。
This thread has been split from the Getting Rid of #Error thread as it is a separate question.

I''m happy enough to post an answer, but we request that questions are kept to their own threads for manageability.


假设你有一个带有CommandButton(cmdReport)和CheckBox(chkNight)的表单(frmChoose)。如果chkNight为False,你想运行一个报告(rptDay),如果它是True,你想运行另一个报告(rptNight)。


你将有一个cmdReport的OnClick程序,如下所示:
Assuming you have a form (frmChoose) with a CommandButton (cmdReport) and a CheckBox (chkNight) on it. You want to run one report (rptDay) if chkNight is False and another (rptNight) if it''s True.

You would have an OnClick procedure for cmdReport something like the following :
展开 | 选择 | Wrap | 行号



假设你有一个带有CommandButton的表单(frmChoose) (cmdReport)和一个CheckBox(chkNight)就可以了。如果chkNight为False,你想运行一个报告(rptDay),如果它是True,你想运行另一个报告(rptNight)。


你将有一个cmdReport的OnClick程序,如下所示:
Assuming you have a form (frmChoose) with a CommandButton (cmdReport) and a CheckBox (chkNight) on it. You want to run one report (rptDay) if chkNight is False and another (rptNight) if it''s True.

You would have an OnClick procedure for cmdReport something like the following :
展开 | 选择 | Wrap | 行号


这篇关于选择CheckBox打开报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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