Re: EoeleException with TDBcheckBox
From: Coville Philippe (pcoville_at_cleario.net)
Date: 01/16/04
- Next message: KKF: "TStringGrid and TInplaceEdit"
- Previous message: Ignacio Vazquez: "Re: Merge text of checked rows into Memo????"
- In reply to: Brian Bushay TeamB: "Re: EoeleException with TDBcheckBox"
- Next in thread: Brian Bushay TeamB: "Re: EoeleException with TDBcheckBox"
- Reply: Brian Bushay TeamB: "Re: EoeleException with TDBcheckBox"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 16 Jan 2004 09:22:11 +0100
Thanks this help a lot to understand what is happening.
Why is it that the database as different value that in my record set and
cause the error? The field I am using is a boolean. When I create the record
the field should be to Null in the database. On my form it apear in grey in
the checkbox wich seems to mean that the value in undefind. After my first
post in the data base the field appear False. I have the impression that
with boolean field in Access there is no Null value and it is what generate
the problem.
Is there a way to have Null value with boolean field in access?
Regards
P. Coville
"Brian Bushay TeamB" <BBushay@Nmpls.com> a écrit dans le message de news:
unne0098ji0idgfehhmuuoep88uea3ptc4@4ax.com...
>
> >
> >At the second post of the same record with the checkbox modified, I get
an
> >EoleException with a message : the line has not been found for the
update.
> >Some values might have changed since the last read.
> >
> >What is the problem?
>
> When you update a record ADO needs to find the record in the database to
update.
> The default is to use the original values of all the fields retrieved from
the
> database. When you insert a new record and then go back to update it with
out
> requerying the database ADO can't find the record.
>
> one way to deal with this is to use the Update Criteria property of ADO to
> specify using just the key fields to find the record to update
>
> ADODataSet1.Properties['Update Criteria'].value :=adCriteriaKey;
>
> Your choices are adCriteriaKey, adCriteriaAllCols (BDE's default),
> adCriteriaUpdCols (ADO's default) and adCriteriaTimeStamp. Search the
> Platform SDK for more details.
>
> You want to set the Update Criteria property in the BeforeUpdate and
> BeforeDelete methods.
>
> see this URL for more detail
> http://support.microsoft.com/default.aspx?scid=kb;EN-GB;q190727&GSSNB=1
> --
> Brian Bushay (TeamB)
> Bbushay@NMPLS.com
- Next message: KKF: "TStringGrid and TInplaceEdit"
- Previous message: Ignacio Vazquez: "Re: Merge text of checked rows into Memo????"
- In reply to: Brian Bushay TeamB: "Re: EoeleException with TDBcheckBox"
- Next in thread: Brian Bushay TeamB: "Re: EoeleException with TDBcheckBox"
- Reply: Brian Bushay TeamB: "Re: EoeleException with TDBcheckBox"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|