Re: Row cannot be located for updating
From: Nicola (malpede.n_at_tiscali.it)
Date: 10/12/04
- Next message: Bob Dalton: "ADO and MS Access Connection Problems"
- Previous message: Chris Trueman: "Re: Delphi 7 ADO vs VB 6 ADO"
- In reply to: Brian Bushay TeamB: "Re: Row cannot be located for updating"
- Next in thread: Brian Bushay TeamB: "Re: Row cannot be located for updating"
- Reply: Brian Bushay TeamB: "Re: Row cannot be located for updating"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 12 Oct 2004 13:36:40 -0700
Value 0 appears only after posting the record, but it shouldn’t be 0!
I didn’t write any single line of code, apart the ones in the AfterPost event.
I forgot something in the previous message.
Setting the AutoGenerateValue of the persistent field ID (the autoincrement field in the table) to arAutoInc is totally useless.
Apparently, no solution to the problem…
P.S. If the primary key is set on other kind of fields everything works.
Brian Bushay TeamB <BBushay@Nmpls.com> wrote:
>>I create a very simple Access 97 database and I connect through Jet 4 and
>>ADO.
>>
>>The table have a primary key based on an Autoincrement field.
>>
>>I use ADODataset (CursorLocation = clUseClient and CursorType = ctStatic).
>>
>>When I add a new record the Autoincrement field is not filled with the
>>proper value but always with 0.
>
>You are not supposed to get a value for the AutoIncrment field until you post
>the record. You should not see 0 as the value either you must have some code
>that is adding the 0 value and that is probably your problem.
>
>
>--
>Brian Bushay (TeamB)
>Bbushay@NMPLS.com
- Next message: Bob Dalton: "ADO and MS Access Connection Problems"
- Previous message: Chris Trueman: "Re: Delphi 7 ADO vs VB 6 ADO"
- In reply to: Brian Bushay TeamB: "Re: Row cannot be located for updating"
- Next in thread: Brian Bushay TeamB: "Re: Row cannot be located for updating"
- Reply: Brian Bushay TeamB: "Re: Row cannot be located for updating"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|