Solved

How to release row handles?

Posted on 2003-11-04
2
162 Views
Last Modified: 2013-12-25
Hi friends!
  I'm using adodb recordset(SQLOLEDB) in my application. On my form, I use some text fields(bound to the data using bindingcollection) to display the records. There are command buttons to move through the records (first,previous,next & last) for which I use movefirst,moveprevious, movenext & movelast methods of the recordset.
I also have 'add' and 'update' buttons to add a new record(addnew method) and save the record(update method).
   When I try to move through the records using the above four buttons, immediately after adding a record and updating, I get an error message like this.
   'You should release all the row handles before getting a new one.'
Please tell me how to release the row handles.  
0
Comment
Question by:vkani
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 48

Accepted Solution

by:
Mikal613 earned 30 total points
ID: 9688411
before Updating and Adding you should Requery the Recordset
0
 
LVL 1

Author Comment

by:vkani
ID: 9692148
Thank you Mikal613!
Your suggestion worked superbly.Thanks a lot!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB6 / DAO 3.6 / run time error: Couldn't find installable ISAM 7 116
MsgBox 4 71
Export Data to Different .csv Files 26 121
how to Classify of email (pdf attachments) 7 50
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

733 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