Solved

How to release row handles?

Posted on 2003-11-04
2
158 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
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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 Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now