报表

编程入门 行业动态 更新时间:2024-10-25 01:30:07
本文介绍了报表-组中的运行计数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个按RoomType_ID分组的Access 2007报告

I have an Access 2007 report which is grouped by RoomType_ID

我需要对组中的每一行进行连续计数,以便最终得到类似的结果:

I need to do a running count on each line within the Group so that I end up with something like:

RoomType_ID 1 1史密斯夫妇 2琼斯夫妇 3史密斯夫妇

RoomType_ID 1 1 Mr and Mrs Smith 2 Mr and Mrs Jones 3 Mr and Mrs Smythe

RoomType_ID 2 1傅先生 2巴太太

RoomType_ID 2 1 Mr Foo 2 Mrs Bar

等...

我怎样才能得到这个?

推荐答案

只需在报告的详细信息部分中放置一个文本框,使该文本框的数据源简单即可:

Just place a text box in the details section of the report, make the data source of the text box simply:

=(1)

在上述文本框的数据标签上,将运行总和设置为全部"

On the data tab of the above text box, set the running sum = "over all"

因此,您在报表中有一行详细信息:

So, you have For one line of detail in the report:

[=(1)] [Couples Name] [Phone Number] ..etc

然后,我将文本框称为"textCount"

And, I would call the text box "textCount"

并且,如果您想在报告的结尾",可以通过将以上文本名称放在报告FOOTER中的另一个文本框中来显示最终计数. 例如: [textCount]

And, if you want at the "end" of the report, you can show a final count by placing the above text name in another text box in the reports FOOTER. eg: [textCount]

将运行总和设置为否.

更多推荐

报表

本文发布于:2023-10-31 07:47:26,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1545480.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:报表

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!