在 MS Access 中生成报告

发布于 2024-10-09 19:04:14 字数 197 浏览 0 评论 0原文

我正在使用查询来获取 ms access 中的数据。我想使用报告打印数据,但受到每页必须两列的限制,我该怎么做?

或者您是否可以建议我如何在 ms access 中执行查询并获取代码中查询返回的记录,以便我可以以另一种方式制作报告。

谢谢 替代文本

I am using a query to fetch data in ms access. I'd like to print the data using a report, but with the constraint that it must be two column per page, how do i do this?

or if you could suggest how i executed a query in ms access and get the records returned by a query in code, so that i can make the report another way.

thanks
alt text

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

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

发布评论

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

评论(1

泛泛之交 2024-10-16 19:04:14

(抱歉,我太菜鸟了,无法使用评论功能,所以我将其作为答案发送,即使它不是确定的)

列技巧可以起作用:实际上,您应该只有一列控件报告的设计视图。在设计视图中,确保只有 Image1 控件(去掉 Image2 控件),然后调整报表大小,使空白区域为可打印区域大小的一半或更小。当您调整报表大小时,您应该抓住空白区域的右边缘并将其拖向左边距。最后,在页面设置中将报告设置为 2 列。

Access 应自动根据第一列中的内容生成第二列,并应使用相关字段内容更新控件。

您可以通过设置图像控件的“控件源”属性而不是设置“图片”属性来确保正确分配图像。 (图片只是文件名的直接链接,但控制源将从字段中读取并将不同的图片分配到适当的位置)。

祝你好运!

(Sorry, I'm too much of a n00b to use the comment function, so I'm sending this as an answer, even though it's not definitive)

The column trick could work: You should only have one column of controls actually in the Design View of your report. In design view, make sure you only have the Image1 controls (get rid of the Image2 ones) and then resize the report so that the white space is half the size of the printable area or less. When you resize the report, you should grab the right edge of the white space and literally drag it towards the left margin. Finally, set the report for 2 columns in Page Setup.

Access should automatically make the second column from what you have in the first column, and should update the controls with the relevant field contents.

You can make sure that the images get assigned correctly by setting the "Control Source" property of the image control and not setting the "Picture" property. (Picture is just a direct link to a filename, but Control Source will read from a field and assign the different pictures to their appropriate places).

Good luck!

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