如何在页尾显示总记录数

发布于 2024-08-10 17:39:48 字数 58 浏览 2 评论 0原文

我想使用水晶报表在页面末尾显示记录总数。如果没有记录,我想将计数显示为 0

I would like to show total number of records at the end of the page using Crystal Reports. If there are no records I would like to display the count as 0.

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

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

发布评论

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

评论(2

你的心境我的脸 2024-08-17 17:39:48

如果您不想点击,这里是提供的解决方案:

“更改摘要操作”并使用“计数”字段
是一个公式:count({您提交的})
如果没有行,count({your returned}) 将返回 null
因此,您可以创建一个新的公式来替换您的 Σ 。
公式:
if isnull(count({您提交的})) then 0 else count({您提交的})

If you don't feel like clicking, here is the solution provided:

"Change Summary operation" and using the "Count" field
is a formula : count({your filed})
if no rows, count({your filed}) will return null.
so, you can create a new formula filed to replace your Σ 。
the formula:
if isnull(count({your filed})) then 0 else count({your filed})

假装不在乎 2024-08-17 17:39:48

那么,您可以做的一件事就是向结果集中添加一个字段,该字段是结果集中记录数的计数。

这可能不是最好的解决方案;计数必须出现在返回的每一行中。当我上次使用 Crystal Reports 时(现在是两年前),我不记得有哪个报表能够处理来自多个数据源的结果。

Well, one thing you can do is add a field to the resultset that is the count of the number of the records in the result set.

It may not be the prettiest solution; the count has to appear in every row returned. When I last used Crystal Reports (pushing two years ago now), I don't recall a single report being capable of handling results from multiple data sources.

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