PC Review


Reply
Thread Tools Rate Thread

How to display first 15 records only on form

 
 
Paul
Guest
Posts: n/a
 
      17th Jan 2007
Hello again,

I have a table (tasks) containing hundreds of records and I would like
my form (task_list) only to display 15 records at a time (starting with
the first 15 in the table). Then when the user clicks on 'next' I would
like the next 15 records to appear. I would also like a 'previous'
button that returns to the previous 15 records.

Is this possible? And if so please can somebody help me?

Many thanks in advance.

P

 
Reply With Quote
 
 
 
 
Jeff Boyce
Guest
Posts: n/a
 
      17th Jan 2007
Paul

"The first 15 in the table" is an oxymoron. Access stores records in tables
according to its own needs and plans, not yours.

That said, you can still get at an ordered/sorted set of records by using a
query, and telling Access how to sort them.

To implement the "15-at-a-time", you could create a procedure that tracks
how many have been shown and where to start and stop ... a somewhat complex
effort.

Or you could use a listbox that shows 15 rows, and let the user click in the
scroll bar to jump up and down 15 at a time.

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Paul" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello again,
>
> I have a table (tasks) containing hundreds of records and I would like
> my form (task_list) only to display 15 records at a time (starting with
> the first 15 in the table). Then when the user clicks on 'next' I would
> like the next 15 records to appear. I would also like a 'previous'
> button that returns to the previous 15 records.
>
> Is this possible? And if so please can somebody help me?
>
> Many thanks in advance.
>
> P
>



 
Reply With Quote
 
John Vinson
Guest
Posts: n/a
 
      17th Jan 2007
On 17 Jan 2007 01:45:25 -0800, "Paul" <(E-Mail Removed)>
wrote:

>Hello again,
>
>I have a table (tasks) containing hundreds of records and I would like
>my form (task_list) only to display 15 records at a time (starting with
>the first 15 in the table). Then when the user clicks on 'next' I would
>like the next 15 records to appear. I would also like a 'previous'
>button that returns to the previous 15 records.
>
>Is this possible? And if so please can somebody help me?
>
>Many thanks in advance.
>
>P


The simplest way would be to use a Continuous Form with room for 15
rows, and let the user click on the very standard navigation controls
(scrollbar, or the page up/page down keys). No code at all...

John W. Vinson[MVP]
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Form will not display records PA Microsoft Access Forms 3 7th May 2010 02:28 PM
Display all records on form tm3025 Microsoft Access Forms 8 30th Jun 2009 10:07 PM
Display Records on form gourishjoshi Microsoft Access VBA Modules 0 30th Mar 2007 11:31 AM
How to sum records in sub form but display in parent form" =?Utf-8?B?am11aXJtYW4=?= Microsoft Access Forms 2 5th Feb 2006 04:38 PM
display records by navigating through records on alternative form =?Utf-8?B?VGltYm9v?= Microsoft Access Getting Started 0 11th Oct 2004 11:03 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:31 PM.