Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB Databases Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 10th, 2004, 04:21 AM
Registered User
 
Join Date: May 2004
Location: , , .
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 :)


Reply With Quote
  #2 (permalink)  
Old July 30th, 2004, 08:32 AM
Authorized User
 
Join Date: Jul 2004
Location: cleveland, oh, USA.
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
Reply With Quote
  #3 (permalink)  
Old July 30th, 2004, 08:40 PM
Registered User
 
Join Date: May 2004
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to lolo
Default

Thanks dhay1999....

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 12:26 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.