根据主窗体中点击的按钮设置报告的标题 [英] set titlle of report based on button clicked on in the main form

查看:56
本文介绍了根据主窗体中点击的按钮设置报告的标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个报告,其中有几个按钮可以根据按钮上的过滤器打开报告。当按钮A时如果按下按钮B,我希望报告的标题是A

。单击,标题应为B

感谢

I have one report with several buttons to open the report based on filters on the buttons. when button "A" is pressed, I want title of report to be "A"
when button "B" is clicked, title should be "B"
thanks

推荐答案

展开 | 选择 | Wrap | 行号


感谢您的回复

这是我的代码
thank you for your responce
this is my code
展开 | < span class =codeLinkonclick =selectAll(this);>选择 | Wrap | 行号


这是意料之外的 - 虽然我之前没有尝试过。根据Access如何使用所有其他对象,人们只能假设同样适用于报告......


有没有办法可以使用TempVars建立全局变量( )?这可以保存一个值,然后该文本框的控制源可以是变量的值。


打开报告的代码将是:
That was unexpected--although I had not tried that before. based on how Access uses all other Objects, one could only assume the same would work for reports......

Is there a way you could establish a Global Variable using TempVars()? This could hold a value, then the Control Source for that Text box could be the value of the Variable.

Your Code to open the report would be:

展开 | 选择 | Wrap | 行号


这篇关于根据主窗体中点击的按钮设置报告的标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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