在表格中运行总和(行号) [英] Running Sum (Line no.) in Form

查看:67
本文介绍了在表格中运行总和(行号)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在表格中输入一个运行总和(行号),如报告的情况?


(主键即自动生成数字)无法解决我的问题问题,在我的表单中,过滤器用于仅显示选定的记录。我想生成序列号。 (运行金额)在输入新记录时,根据我在表格中的过滤记录。


我们的请求是您的帮助。


谢谢事先。

How can I put a Running Sum (Line No.) in a form, as in the case of Report?

(Primary key i.e. Auto generate Number) does not solve my problem, as in my form, filter is used to display only selected records. I want to generate serial no. (running sum) at the time of entering new records, based on my filtered records in table.

Your help is solicited.

Thanks in advance.

推荐答案

简短的回答是,你不能。可能有一些聪明的方法,但原则上它不起作用。

在你的位置我会捕获BeforeUpdate事件并在检查表中使用的最大数量后添加一个数字(DMax()将为您提供所需的价值 - 当然还有一个。)
The short answer is that you can''t. There may be clever ways around this but in principle it doesn''t work.
In your position I would capture the BeforeUpdate event and add a number in after checking the max number used in the table so far (DMax() will give you the value you need - plus one of course).


那里。


所以基本上你想要在导航栏中有一个带RecordNumber的文本框/标签。我是对的吗?
Hi, there.

So basically you want to have a textbox/label with RecordNumber as in navigation bar. Am I right?



那里。


所以基本上你想拥有一个带有RecordNumber的文本框/标签,如导航栏中所示。我对吗?
Hi, there.

So basically you want to have a textbox/label with RecordNumber as in navigation bar. Am I right?



是的我想要一个带有记录号的文本框/标签。

Yes I want a text box / label with a record no.


这篇关于在表格中运行总和(行号)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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