Solved

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

Posted on 2001-08-01
4
238 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
DIR issue 7 50
Excel object stays open 19 70
How to add contact name to VBA code to automate emails in outlook using a Template 11 71
MsgBox 4 43
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

914 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

13 Experts available now in Live!

Get 1:1 Help Now