接受用户输入的 OpenOffice Base Report

发布于 2024-09-24 09:36:38 字数 294 浏览 1 评论 0原文

我正在编写大量从 Excel 生成报告的 VBA 代码。

我认为使用 Excel 和 VBA 在工作表上运行“查询”是一个非常愚蠢的想法,因此我想在数据库环境中执行此操作。

我成功地将所需的表和数据移植到 OpenOffice 库中。现在的问题是,我需要运行一个报告,该报告接受用户输入,例如在披萨数据库中:

“每周向我显示火腿的总使用量,并按月进行合并。”

其中“火腿”是用户可以更改为“意大利辣香肠”的成分。

如何创建接受用户输入的报告?我需要用子表单来完成吗?我可以将表单连接到报告吗?

I'm working on a LOT of VBA code that generates reports from Excel.

I reckon it's a really stupid idea to use Excel and VBA to run "queries" on an worksheet so I'd like to do it in a database environment.

I successfully ported the required table and data into OpenOffice base. The problem now is that I need to run a report that takes in user input for example in a pizza database:

"Show me total use of ham on a weekly basis and consolidate that on a month by month basis."

Where "ham" would be an ingredient that the user could change for say, "pepperoni".

How do I create a report that takes user input? Do I need to do it with a subform? Can I connect a form to a report?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

身边 2024-10-01 09:36:38

借助下拉列表、命名范围以及 sumproduct() 等高级函数,您可能能够在 Excel 中执行所需的所有操作,甚至可能不需要任何 VBA(它比大多数人意识到的更强大)。您能给我们再举一些例子吗?

Thanks to drop-lists, named ranges, and advanced functions like sumproduct(), you might be able to do everything you need in Excel, possibly without any VBA (It's more powerful than most people realize). Can you give us some more examples?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文