要求标题的报告(用户输入) [英] Report asking for title (user input)

查看:80
本文介绍了要求标题的报告(用户输入)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好


我想知道是否可以在报告中创建一个文本框,该文本框将询问用户(用户输入)的标题。他想要报告。


谢谢

Hello

I was wondering if it is possible to create a textbox in a report which will ask the user (user input) for the "title" he wants for the report.

Thanks

推荐答案


Hello


我想知道是否可以在报告中创建一个文本框,该文本框将询问用户(用户输入)的标题。他想要报告。


谢谢
Hello

I was wondering if it is possible to create a textbox in a report which will ask the user (user input) for the "title" he wants for the report.

Thanks



您可以在Print / OnClick事件中弹出一个输入框预览命令按钮询问用户的标题首选项。有关如何使用它们的示例,请参阅VBA中的输入框帮助文件。


然后从输入框中,以编程方式打开报告并将输入框的值作为标题传递给它。


问候,

Scott

You can pop up an Input box in the OnClick event of your Print/Preview command button asking for the user''s title preference. See the inputbox help file in VBA for examples, instructions on how to use them.

Then from the input box, programatically open the report and pass it the value of the input box as title.

Regards,
Scott



你可以弹出打印/预览命令按钮的OnClick事件中的输入框,询问用户的标题首选项。有关如何使用它们的示例,请参阅VBA中的输入框帮助文件。


然后从输入框中,以编程方式打开报告并将输入框的值作为标题传递给它。


问候,

Scott
You can pop up an Input box in the OnClick event of your Print/Preview command button asking for the user''s title preference. See the inputbox help file in VBA for examples, instructions on how to use them.

Then from the input box, programatically open the report and pass it the value of the input box as title.

Regards,
Scott



感谢Scott的回复,我已经通读了帮助和那里的例子我只是想知道是否有一个更简单的这样做的方式。


我曾经留下一个无界的文本框,我记得它问过我的价值,实际上我觉得我写了一些测试问题。对于这个用户输入我只是不记得你可以写这个属性的什么?我已经尝试过控件名称,源代码等等。


如果这是不可能的,你可以帮我一些代码,以便在打开报告时它会询问用户标题????我真的很新。


再次感谢,

Gilberto

Thanks for the reply Scott, i already read through help and the example there i was just wondering if there was a "simpler" way to do it.

I once left an unbounded textbox and i remember it asked me for the value and actually i think i wrote some test "questions" for this userinput i just cant remember whats the property where you can write this??? I already tried the control name, source, etc and nothing.

If this is not possible could you help me with some code just so that on opening the report it asks the user for the title???? Im really new on this.

Thanks again,
Gilberto



感谢斯科特的答复,我已经阅读了帮助和那里的例子我只是想知道是否有一个更简单的这样做的方式。


我曾经留下一个无界的文本框,我记得它问过我的价值,实际上我觉得我写了一些测试问题。对于这个用户输入我只是不记得你可以写这个属性的什么?我已经尝试过控件名称,源代码等等。


如果这是不可能的,你可以帮我一些代码,以便在打开报告时它会询问用户标题????我真的很新。


再次感谢,

Gilberto
Thanks for the reply Scott, i already read through help and the example there i was just wondering if there was a "simpler" way to do it.

I once left an unbounded textbox and i remember it asked me for the value and actually i think i wrote some test "questions" for this userinput i just cant remember whats the property where you can write this??? I already tried the control name, source, etc and nothing.

If this is not possible could you help me with some code just so that on opening the report it asks the user for the title???? Im really new on this.

Thanks again,
Gilberto



无需代码。您的报告应绑定到查询。在名为Title的查询中创建一个额外字段:As WHERE标准将其指向某个不存在的文本框。例如,Forms!FormNonExist!TitleTextBox。


然后,无论何时打开报表/查询,它都会提示输入该参数...


此致,

Scott

No code needed probably. Your report should be bound to a query. Create an extra field in the query called Title: As WHERE criteria point it to a text box somewhere that doesn''t exist. For example, Forms!FormNonExist!TitleTextBox.

Then whenever you open the report/query it will prompt for that parameter...

Regards,
Scott


这篇关于要求标题的报告(用户输入)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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