在 ms 访问报告 vba 中复制报告字段

Posted

技术标签:

【中文标题】在 ms 访问报告 vba 中复制报告字段【英文标题】:Copying report fields in ms access report vba 【发布时间】:2018-05-16 21:55:10 【问题描述】:

我想创建一个按钮来复制来自表单的报表中的字段,但我不知道如何在 VBA 中的按钮后面编写 VBA。我敢肯定它很简单,但无法弄清楚。如果您能帮助我,我将不胜感激。

【问题讨论】:

这不是一个用户从头开始为您编写代码的网站。在你身边展示一些编码工作。除了帖子中的陈述非常笼统,它们让我们猜测真正需要什么。 【参考方案1】:

要将 Access 2007 表单转换为报表,请执行以下步骤:

Open the database containing the form.
Click the name of the form in the Navigation pane.
Click the Microsoft Office button.
Point to Save As and then click Save Object As.
Click in the Save "Form_Name" To text box and enter a name for your report.
Click the drop-down arrow in the As text box and select Report from the list, then click OK.

不需要 VBA。

【讨论】:

以上是关于在 ms 访问报告 vba 中复制报告字段的主要内容,如果未能解决你的问题,请参考以下文章

MS Access 报告“每个细节”格式化和 VBA 中的访问

错误 ms 访问 vba 电子邮件报告

访问报告字段截断为 255 个字符

VBA根据查询运行带有参数的访问报告

访问报告:如何按一个字段分组,但按另一个字段排序?

使用 VBA 访问查询和报告?