Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I'm facing a problem. I execute select query and get recordset which i retain and whenever i get prompt for data of specific record, I use 'Find' function of recordset to findout my desired record and returned its data.

After some time, my recordset becomes invalid, do't know why? Can anyone explain to me and suggest me some solution.

Regards,
Sikander
Posted
Comments
Henry Minute 9-Jun-10 7:57am    
I do not know the answer to your question but I feel it would help if people knew what language you were using and a small code sample of your use of 'Find' might also assist. Please add this by editing your original question.

1 solution

Generally speaking, you should not keep a connection alive. This allows ADO to do connection pooling (which it is very good at). When getting data via ADO, make a connection, get your data and close the connection each time.Read More: http://www.mofeel.net/27-microsoft-public-data-ado/4811.aspx

Good luck!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900