Query-based update failed because the row to update could not be found.
Query-based update failed because the row to update could not be found.
Query-based update failed because the row to update could not be found.
Query-based update failed because the row to update could not be found.
Query-based update failed because the row to update could not be found.
Query-based update failed because the row to update could not be found. Query-based update failed because the row to update could not be found. Query-based update failed because the row to update could not be found. Query-based update failed because the row to update could not be found. Query-based update failed because the row to update could not be found. Query-based update failed because the row to update could not be found. Query-based update failed because the row to update could not be found. Query-based update failed because the row to update could not be found.
Query-based update failed because the row to update could not be found. Query-based update failed because the row to update could not be found.
Query-based update failed because the row to update could not be found.
Go Back  Xtreme Visual Basic Talk > > > Query-based update failed because the row to update could not be found.


Reply
 
Thread Tools Display Modes
  #1  
Old 04-17-2016, 02:50 PM
Maany Maany is offline
Newcomer
 
Join Date: Nov 2014
Posts: 9
Default Query-based update failed because the row to update could not be found.


I have a program that needs to update a field in a table based on a query

but I keep getting this error when reaching the update, the row is still there and record is intact, why is it giving me this error?

(Query-based update failed because the row to update could not be found.)

your help is highly appreciate as i am behind deadline already.

Code:
Rs.Open "Select * from app where Phone like '0790921025'", CN, adOpenKeyset, adLockOptimistic
    If Not Rs.EOF Then
        With Rs
               Rs!Paid = "YES"
            .Update
         End With
   end if
rs.close
Reply With Quote
  #2  
Old 04-18-2016, 05:29 AM
Flyguy's Avatar
FlyguyQuery-based update failed because the row to update could not be found. Flyguy is offline
Lost Soul

Super Moderator
* Guru *
 
Join Date: May 2001
Location: Vorlon
Posts: 19,164
Default

Why don't you use an Update query?
SQL UPDATE Statement
Reply With Quote
Reply

Tags
update, row, error, query-based, found, failed, app, phone, deadline, rs.open, select, rspaid, .update, rs.close, adopenkeyset, adlockoptimistic, rs.eof, intact, based, query, table, program, field, giving, highly


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Query-based update failed because the row to update could not be found.
Query-based update failed because the row to update could not be found.
Query-based update failed because the row to update could not be found. Query-based update failed because the row to update could not be found.
Query-based update failed because the row to update could not be found.
Query-based update failed because the row to update could not be found.
Query-based update failed because the row to update could not be found. Query-based update failed because the row to update could not be found. Query-based update failed because the row to update could not be found. Query-based update failed because the row to update could not be found. Query-based update failed because the row to update could not be found. Query-based update failed because the row to update could not be found. Query-based update failed because the row to update could not be found.
Query-based update failed because the row to update could not be found.
Query-based update failed because the row to update could not be found.
 
Query-based update failed because the row to update could not be found.
Query-based update failed because the row to update could not be found.
 
-->