在Access报告中添加行号 [英] Adding row numbers in an Access report

查看:121
本文介绍了在Access报告中添加行号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为报表中的每条记录添加行号。我将在每个页面上有10条记录,我希望它们在每个新页面重新启动。从1到10再计数,然后为每个新页面重置

我使用了控制源设置为1并运行sum的文本框,但问题是要在新页面上重置

I want to add a row number for each record in a report. I will have 10 records on each page and I want them to restart at every new page. So counting from 1 to 10 and then resetting for every new page
I have used a textbox with control source set to 1 and running sum, but the problem is to get it to reset on a new page

推荐答案

在报表的页面格式页面格式属性中,将文本框的值设置为1.
In the Report''s Page Header On Format property, set the value of the text box to 1.


您好,


感谢您的回答,但我在详细信息中有文本框。报告的一部分,每个记录都有一个新的行号。


Page 1

1. Alan

2. Bob

3. Ceasar

Page 2

1.大卫

2. Eric

3. Fred


我可以使用一些重置每个分页符的变量吗?
Hi,

Thank you for the answer, but I have the textbox in the "detail" section of the report to have a new row number for each record.

Page 1
1. Alan
2. Bob
3. Ceasar

Page 2
1. David
2. Eric
3. Fred

Can I use some variable that resets every page break?


假设你的文本框名为txtCount,删除控制源。


在报告的VBA模块中:
Assuming your text box is named txtCount, remove the control source.

In the Report''s VBA Module:
展开 | 选择 | Wrap | 行号


这篇关于在Access报告中添加行号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆