[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

.Update Method with ADO Recordsets

Posted on 2000-05-11
3
Medium Priority
?
389 Views
Last Modified: 2013-11-25
Hello there,

I have a problem using the .Update method with and ADO recordset using
Oracle and VB 6.

I have a loop to go through each text box and assign each one to a field in the database.


Rs.Fields(val).value  = Text(i).text.
Rs.Update

if there is a numeric value I set it to NULL and string values I set to ""

This is fine with the first update but if I change the data and try to save
the record again using the .Update Method. I get the following error message from VB.


Err.Number = -2147217864
Err.Description = The specified row could not be located for updating.Some
values may have been changed since it was last read.

Could anyone explain what the cause of this error and any way to fix or go around it.

Thanks





0
Comment
Question by:DarrenD
[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
3 Comments
 
LVL 28

Expert Comment

by:AzraSound
ID: 2800686
0
 
LVL 14

Accepted Solution

by:
wsh2 earned 200 total points
ID: 2800693
After the rs.update do a rs.Resynch
0
 
LVL 18

Author Comment

by:DarrenD
ID: 2800902
Works a like a charm...
 
Thanks Wsh2.

I thought that the .update method would do that for you. I never even new about the .Resync method.

Also thanks to AzraSound for giving an answer.

And it has to be said thanks for the quick response from both...

0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

649 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