G
GCMathis
How can I display the current record number and the total number of records
on a form?
Thanks,
Gene Mathis
on a form?
Thanks,
Gene Mathis
Access does not have record numbers.GCMathis said:How can I display the current record number and the total number of records
on a form?
Allen Browne said:Current record number:
=[Form].[CurrentRecord]
Number of records:
=[Form].[RecordsetClone].[RecordCount]
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
GCMathis said:How can I display the current record number and the total number of records
on a form?
Luke Bellamy said:Hi Allen,
Access loads the entire contents of the
table (or query that you set as the recordsource) when it loads
the form so the RecordCount would always be correct right?
Another way to look at it, I remember using VBA and called
RecordCount on a recordset but the recordcount would only
show -1 until I called MoveLast to load the entire table into mem.
It then knew that no. of records that were in the recordset.
--
Luke Bellamy
Newcastle, Australia
http://www.CashWhiz.com.au
Allen Browne said:Current record number:
=[Form].[CurrentRecord]
Number of records:
=[Form].[RecordsetClone].[RecordCount]
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
GCMathis said:How can I display the current record number and the total number of records
on a form?