Wrox Programmer Forums
|
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 10th, 2004, 04:21 AM
Registered User
 
Join Date: May 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to lolo
Default Re : How to release Row Handles

hi everyone! i wanna ask you guys how can i release row handles from ADO? this error appears everytime i use the index many time in my program

ex.

with rstTemp
.Index = "CID" 'If i use this many times the row handles appears
.Seek nText
If not .EOF then Display Fields
end with

Hope to hear from you soon guys.

Thanks in advance.

jho :)


 
Old July 30th, 2004, 08:32 AM
Authorized User
 
Join Date: Jul 2004
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've had that problem also.

Once you open the recordet and set the index, forece the move to the first record.
i "think" this initializes the index on the recordset. usually works for me. Once the index is set, you don't have to set it again, which looks like what would be happening in your code.

rstTemp.open " open string etc...."
rstTemp.index="CID"
rstTemp.movefirst

Do this outside of your seek function

with rstTemp
.Seek nText
If not .EOF then Display Fields
end with
 
Old July 30th, 2004, 08:40 PM
Registered User
 
Join Date: May 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to lolo
Default

Thanks dhay1999....






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get handles opened by the current process? baburman General .NET 0 September 25th, 2005 05:52 AM
How to get handles opened by the current process? baburman .NET Framework 2.0 0 September 24th, 2005 05:31 AM
Re : Freeing Row handles lolo Access VBA 1 May 22nd, 2004 12:18 PM
Re : How to remove Row handles lolo Pro VB Databases 0 May 7th, 2004 08:06 PM
Handles to userform controls QUASHLA Excel VBA 0 April 17th, 2004 06:40 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.