Re: Row cannot be located for updating
From: Val Mazur (group51a_at_hotmail.com)
Date: 09/04/04
- Previous message: Val Mazur: "Re: adFilterPendingRecords when no rows have changed"
- In reply to: David Beers: "Row cannot be located for updating"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 3 Sep 2004 21:08:50 -0400
Hi David,
Check if it helps
http://support.microsoft.com/default.aspx?scid=kb;en-us;193515&Product=ado
http://support.microsoft.com/default.aspx?scid=kb;en-us;294842&Product=ado
-- Val Mazur Microsoft MVP "David Beers" <DavidBeers@discussions.microsoft.com> wrote in message news:01589E2C-F56E-4816-B396-93D7432808E7@microsoft.com... > I'm writing a VB6 application that parses a text file, loads the data into > an > intermediate Access database, and then synchronizes the data with a Palm > OS > device via the Palm Conduit Developer Kit. (The Palm aspect is probably > unimportant) > > I am able to open a connection with the Jet.OLEDB.4.0 Provider, create a > recordset and add records to a table in the database, performing an > rs.update > with each record. Then the recordset gets passed to another part of the > application with performs the Palm sync and I'm able to successfully read > the > data and write it to the database in the Palm. But after doing that I > need > to modify and update a couple of fields in the Access database. When I > make > one more rs.update to accomplish this I get an error: > > "Row cannot be located for updating. Some values may have been changed > since > it was last read." > > I don't understand why all the previous updates worked fine and this one > fails. > > I'm using client-side cursor, adOpenDynamic, and adLockOptimistic > > I've tried closing the recordset and reopening a fresh one, but that > doesn't > seem to help. I read somewhere to use rs.Resync before I update, but that > gave an error "Single-row refresh operation returned multiple rows." I > read > that I need to have a primary key established, but this didn't seem to > help > either (and in any case, I've written conduits very similar to this one > without assigning a primary key and not had this problem). > > I seem to be out of ideas and a little desperate, as I've lost a whole day > now with this problem. > > -- > David Beers > Pikesoft Mobile Computing > www.pikesoft.com
- Previous message: Val Mazur: "Re: adFilterPendingRecords when no rows have changed"
- In reply to: David Beers: "Row cannot be located for updating"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|