显示找到的记录数 [英] Display the number of records found
问题描述
嗨伙计们 - 还有一个问题我无法理解。
我有一个显示一组记录的表格,我希望在表格顶部显示用户在总记录中查看的记录数。
我希望你明白我在寻找什么。
例如我希望展示这样的东西
"记录:50个中的1个找到
我知道如何显示总cose只是所有记录的计数但是1的记录是什么。每次用户点击查看下一条记录时如何显示和增加?
谢谢
Hi guys - one more problem i couldn''t figure it out .
I have a form which displays a set of records and i want to display on top of the form the number of the record the user is looking at out of the total records .
I hope u understand what i''m looking for .
for example i want to display something like this
" record : 1 out of 50 found "
i know how to display the total cose is just a count of all records but what about the "1" how do i make it to display and to incremet each time the user clicks to see the next record?
Thanks
推荐答案
@onyris
您可以使用表单的CurrentRecord属性来识别正在查看的Recordset中的当前记录,如:
@onyris
You can use the CurrentRecord Property of a Form to identify the Current Record in the Recordset being viewed, as in:
此数字并不总是如此可以预测。即使它是,它也不是一个有助于参考的东西。我建议你最好显示一个字段,比如PK,它将唯一地引用记录。
将来查找记录#X通常会返回不同的记录,取决于许多变量。
This number will not always be predictable. Even if it is, it is not something that will be much help to refer to. I suggest you''d be better off displaying a field, such as the PK, which will uniquely reference the record.
Finding record #X in future will often return a different record, depending on a number of variables.
您可以使用表单的CurrentRecord属性来识别正在查看的Recordset中的当前记录b $ b
You can use the CurrentRecord Property of a Form to identify the Current Record in the Recordset being viewed
谢谢你,这正是我所需要的。
Thanks man , that''s exactly what i needed .
这篇关于显示找到的记录数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!