ms访问负页码

发布于 2024-09-06 02:21:35 字数 154 浏览 3 评论 0原文

我有一个生成 36505 个页面的访问报告(过滤,每个页面的大约一半由组标题和页眉占用),尽管报告页面底部的页脚显示“36505” -29031”。这看起来可能是一个溢出问题,尽管我很困惑它如何获得最后一页的当前页码,但无法获得总页数。以前有人处理过这个吗?

I have an access report that generates 36505 pages (un filtered, and about half of each page is taken up by group headers and page headers) , though the footer at the bottom of the report page says "36505 of -29031". This looks like an overflow problem maybe, though I'm confused how it got the current page number of the last page OK, but failed to get total page count. Has anyone dealt with this before?

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

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

发布评论

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

评论(2

潇烟暮雨 2024-09-13 02:21:35

我在此页面上找到了一条线索:

http: //www.sqldrill.com/excel/access-reports/695207-access-prints-negative-number.html

但表达式不是 100%,所以我必须修改它:

="Page " & [Page] & " of " & IIf([Pages]<1,(32768-Abs([Pages]))+32768,[Pages])

页码似乎是正确的现在。 :)

I found a clue on this page:

http://www.sqldrill.com/excel/access-reports/695207-access-prints-negative-number.html

But the expression wasn't 100% so I had to modify it:

="Page " & [Page] & " of " & IIf([Pages]<1,(32768-Abs([Pages]))+32768,[Pages])

Page numbers appear to be correct now. :)

俯瞰星空 2024-09-13 02:21:35

在我的 Access 2003 报告中,此报告将 Page 报告为 Long,将 Pages 报告为 Integer。 (我假设您的报告将其作为页脚文本框表达式:="Page " & [Page] & " of " & [Pages])因此,您获得 Pages 明显溢出是有道理的但不是页面

Private Sub Report_Open(Cancel As Integer)
    Debug.Print "TypeName(Me.Page) " & TypeName(Me.Page)
    Debug.Print "TypeName(Me.Pages) " & TypeName(Me.Pages)
End Sub

我不知道有什么解决方法。我从来没有处理过这么大的报告。

In my Access 2003 report, this reports Page as Long and Pages as Integer. (I assume your report has this as the footer text box expression: ="Page " & [Page] & " of " & [Pages]) So it makes sense you're getting an apparent overflow for Pages but not Page.

Private Sub Report_Open(Cancel As Integer)
    Debug.Print "TypeName(Me.Page) " & TypeName(Me.Page)
    Debug.Print "TypeName(Me.Pages) " & TypeName(Me.Pages)
End Sub

I don't know of a work-around. I've never dealt with such a huge report.

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