Solved

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

Posted on 2001-08-01
4
233 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
4 Comments
 
LVL 3

Expert Comment

by:Bahnass
ID: 6339511
Listening
Thanx
0
 

Accepted Solution

by:
dnechodom earned 150 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
z = x + y – 1 6 59
Write data from SQL to CSV file - position 1 46
Windows 10 start screen issues 9 47
message box in access 4 34
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now