Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 1 / November 2004

Tip: Looking for answers? Try searching our database.

A better way to determine the number of records in a continuous form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rob - 04 Nov 2004 16:31 GMT
Is there a faster/cheaper way to determine the number of records being
displayed in a continuous form?
I always did:

dim rs as dao.recordset
set rs = me.recordsetclone

if rs.recordcount = 0 then
   msgbox "no records"
else
   rs.movelast
   msgbox "you have " & rs.recordcount & " records"
endif

Thanks
Rob
Bruno Campanini - 04 Nov 2004 17:02 GMT
> Is there a faster/cheaper way to determine the number of records being
> displayed in a continuous form?
[quoted text clipped - 12 lines]
> Thanks
> Rob

Put:
=[Recordset].[RecordCount]
in a Control Source of a Text Box in your Form.

With me it doesn't work correctly on first
15-20 records.

Ciao
Bruno
Ron Devonish - 04 Nov 2004 19:26 GMT
In the Control Source of a Text Box control simply write:

=Count(*)

Ron
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.