A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Display set # of records per page on form



 
 
Thread Tools Display Modes
  #1  
Old November 12th, 2009, 04:35 AM posted to microsoft.public.access.forms
Pamela
external usenet poster
 
Posts: 193
Default Display set # of records per page on form

I have created a work queue form based off of a query for all of our
in-progess cases. The results may easily exceed 250 records and for easier
navigation, I'd like the best way to create page # buttons/tabs in the botton
right corner. Each page would display about 25 records and then page 2, for
instance, would display the next 25 and on and on. This should be dynamic in
that if we should only have 25 cases, it would only display a page 1
tab/button. What is the best way to achieve this?

Thanks so much!

Pamela
  #2  
Old November 12th, 2009, 05:42 AM posted to microsoft.public.access.forms
Tom van Stiphout[_2_]
external usenet poster
 
Posts: 1,653
Default Display set # of records per page on form

On Wed, 11 Nov 2009 20:35:01 -0800, Pamela
wrote:

It probably depends on how your data is sorted. Say it is by ID. You
could select 25 rows using something like:
dim lngMaxID as long
with Me.RecordsetClone
.MoveLast
lngMaxID = !ID
end with
dim sql as string
sql = "select top 25 * from myTable
where ID " & lngMaxID
Me.RecordSource = sql

-Tom.
Microsoft Access MVP



I have created a work queue form based off of a query for all of our
in-progess cases. The results may easily exceed 250 records and for easier
navigation, I'd like the best way to create page # buttons/tabs in the botton
right corner. Each page would display about 25 records and then page 2, for
instance, would display the next 25 and on and on. This should be dynamic in
that if we should only have 25 cases, it would only display a page 1
tab/button. What is the best way to achieve this?

Thanks so much!

Pamela

  #3  
Old November 12th, 2009, 06:08 AM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Display set # of records per page on form

On Wed, 11 Nov 2009 20:35:01 -0800, Pamela
wrote:

I have created a work queue form based off of a query for all of our
in-progess cases. The results may easily exceed 250 records and for easier
navigation, I'd like the best way to create page # buttons/tabs in the botton
right corner. Each page would display about 25 records and then page 2, for
instance, would display the next 25 and on and on. This should be dynamic in
that if we should only have 25 cases, it would only display a page 1
tab/button. What is the best way to achieve this?

Thanks so much!

Pamela


A Continuous Form sized so that 25 cases fit on the screen would do this with
no code at all.
--

John W. Vinson [MVP]
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:11 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.