Re: ADO - Edit changes multiple records
- From: Anders Eriksson <andis59@xxxxxxxxx>
- Date: Tue, 31 Oct 2006 14:05:17 +0100
Hello Bob,
On Tue, 31 Oct 2006 06:49:18 -0500, Bob Barrows [MVP] wrote:
Anders Eriksson wrote:
Hello,
Why use a recordset for a simple update? Does the same problem occur if you
execute this sql without using a recordset?
sql="UPDATE Skylt SET Status= 2 " & _
" WHERE ((OrderNr='17366500000100') AND " & _
"(Version=0) AND (BatchNr='207101000650036') AND (SkyltNr=1)) "
If you're enamoured with using a recordset, you may need to include the key
fields in the column list of the select statement.
The idea is not bad, but since I read the value of the two colums just
before updating I assume that it makes a bit more sense to use the already
open recordset.
I just tried to change the CursorLocation from adUseClient to adUseServer,
and now the error is gone.
I don't really know when to use Client resp Server, but I will try this for
a while and see it everything works
Thanks for the answer!
// Anders
--
English is not my first, or second, language
so anything strange, or insulting, is due to
the translation.
Please correct me so I may improve my English!
.
- References:
- Re: ADO - Edit changes multiple records
- From: Bob Barrows [MVP]
- Re: ADO - Edit changes multiple records
- Prev by Date: Re: ADO - Edit changes multiple records
- Previous by thread: Re: ADO - Edit changes multiple records
- Index(es):
Relevant Pages
|