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 / New Users / April 2005

Tip: Looking for answers? Try searching our database.

Record number

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jennifer-Ashley - 28 Apr 2005 15:38 GMT
Hi guys,

Does any of you know how to show the current record number and record count
in a form, other than using the standard navigation buttons at the bottom of
the screen?

Thanx,
Jenn
Van T. Dinh - 28 Apr 2005 16:03 GMT
Create a (calculated) TextBox on your Form with ControlSource:

   = [CurrentRecord] & " of " & [Recordset].[RecordCount]

(tested in A2K2).

Signature

HTH
Van T. Dinh
MVP (Access)

> Hi guys,
>
[quoted text clipped - 4 lines]
> Thanx,
> Jenn
Jennifer-Ashley - 28 Apr 2005 16:18 GMT
> Create a (calculated) TextBox on your Form with ControlSource:
>
>     = [CurrentRecord] & " of " & [Recordset].[RecordCount]

Hi, thanks for responding. When I apply the above code in the TextBox and
run the form, the TextBox shows #Name?. Obviously, I am doing something wrong
here.

Thanks,
Jenn
Van T. Dinh - 28 Apr 2005 16:37 GMT
I tested it A2K2 and it worked fine on my laptop.

However, IIRC, there may be timing issue with this if you use a slow
computer or the Form's Recordset is big.

Leave the TextBox unbound and use the Form_Current Event to set the value of
the TextBox.  Something like:

Me.MyTextBox = Me.CurrentRecord & " of " & Me.Recordset.RecordCount

Signature

HTH
Van T. Dinh
MVP (Access)

> > Create a (calculated) TextBox on your Form with ControlSource:
> >
[quoted text clipped - 6 lines]
> Thanks,
> Jenn
Jennifer-Ashley - 28 Apr 2005 19:22 GMT
> Leave the TextBox unbound and use the Form_Current Event to set the value of
> the TextBox.  Something like:
>
> Me.MyTextBox = Me.CurrentRecord & " of " & Me.Recordset.RecordCount

Wow thanks, that worked! Nonetheless, I recently bought this computer, it is
very fast ans has more than 1 mB of internal memory. Anyways, it works.

Bye,
Jenn
 
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.