?
Solved

How to display the search results into a flexigrid by pagesize using ADO(Visual Basic).

Posted on 2001-08-01
4
Medium Priority
?
261 Views
Last Modified: 2010-05-02
I need to display the search results into flexigrid by pagesize using ADO.  I understand that absolutepage may help but i have problems with the recordset. For example, the total search results is 15 records and I have set the pagesize to 5. So the pagecount is 3. However, the recordset is always showing 15 records. Therefore the flexigrid will always show 15 records instead of first 5 records.  Please let me know how should I control the recordset.

Can i have an example of source code for it.
It's urgent and thanks.
0
Comment
Question by:choong
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 3

Expert Comment

by:Bahnass
ID: 6339511
Listening
Thanx
0
 

Accepted Solution

by:
dnechodom earned 600 total points
ID: 6340632
If all you want to see are the first five records, set the .MaxRecords property of the ADO recordset to 5. If, on the other hand, you wish to page through the complete recordset 5 records at a time, you'll have to store the recordset in an array & populate the grid programmatically.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7198373
Hi choong,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept dnechodom's comment(s) as an answer.

choong, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 5

Expert Comment

by:Netminder
ID: 7213206
Per recommendation, force-accepted.

Netminder
CS Moderator
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month10 days, 8 hours left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question