Re: EditMode gets reset to adEditNone when adding multiple records
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Fri, 25 Aug 2006 09:39:33 -0400
Sven De Bont wrote:
Hello all,Since you are using adUseClient, adOpenStatic is the ONLY cursor type you
I recently took over a VB6 application and I need to make some
changes to it. It's a 3-tier application using COM+ (originally MTS)
and an MS SQL database 2000. It uses MDAC version 2.8
The Middle Tier retrieves data from the database into ADO recordsets
and returns these to the clients. The recordsets have the following
specs:
CursorLocation = adUseClient
CursorType = adOpenStatic
will have. No other cursor type is supported by the ADO cursor library
(adUseClient)
LockType = adLockBatchOptimistic
In the new feature I'm adding, the client should be able to add
multiple records to the recordset and send it back to the Middle Tier
when done.
Whenever the clients adds more than one record to the recordset, only
the last added record is saved to the database.
Does this occur when you are debugging the application? Or only when a
client is using a compiled version?
After I took a closer look, I found that the other added records were
still in the recordset, but had their EditModeproperty reset to
adEditNone (so calling UpdateBatch has no effect on these records).
I can't figure out where exactly the EditMode gets reset.
If this is occuring during the debugging process, you might try scattering
some debug.assert statements throught the code so you can narrow down where
this is occurring.
Does anyone have any idea what could cause the editmode property
getting reset to adEditNone?
None. I am assuming you are using disconnected recordsets and calling the
Update method after adding the records, correct?
Could you provide a small repro to allow us to test it ourselves?
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
.
- Prev by Date: Re: ADO error (80004003) on 1 machine
- Next by Date: Re: EditMode gets reset to adEditNone when adding multiple records
- Previous by thread: Re: Timing Rescordset
- Next by thread: Re: EditMode gets reset to adEditNone when adding multiple records
- Index(es):
Relevant Pages
|
|