Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to cycle through Recordset 500 records at a time

Status
Not open for further replies.

Sheriff

Programmer
Sep 1, 2001
34
US
Hi,
I have about 6600 record is access db and it is beginning to bog down when all of the record are selected. Is there a way to get 500 or more records at a time in grid form until you reach EOF
Thanks in advance
Sheriff
 
Why not get the records you need each time? You surely can't be using 6600 or even 500 in one transaction.

If you do want a continuous datasheet then 6600 records is not your problem. Something weird is going on if that doesn't happen in the twinkling of an eye. Tell us more - is this some horrible multi-join?

 
Thank you for the reply, this is the query, I don't think it will qualify as multi join. The Client just want to have the complete recordset in the grid. It goes without saying that all variables are dimed. I am trying to make it faster.
thanks again

MySql = "SELECT Pawns.*"
MySql = MySql & " From Pawns"
MySql = MySql & " ORDER BY Pawns.PawnDate"
 
Have you tried to create an index on PawnDate ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Thank you to BNPMike and PHV for the replies, they have been very helpful.

Thanks again
Sheriff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top