ADODataSet1.Properties['Update Criteria'].value :=adCriteriaKey;
Your choices are adCriteriaKey, adCriteriaAllCols (BDE's default),
adCriteriaUpdCols (ADO's default) and adCriteriaTimeStamp.
http://support.microsoft.com/default.aspx?scid=kb;EN-GB;q190727&GSSNB=1
--
Brian Bushay (TeamB)
Bbu...@NMPLS.com
I have a problem using TADODataSet. Sometimes editing my data in a grid, I
get an error described above:
"Row cannot be located for updating. Some values may have been changed since
it was last read.".
For instance, this happens after I have inserted a new record, saved it to
the database and then try to edit it.
Does anybody have a clue of why this is happening and how it can be easily
solved ?
Is this a setting or any option in the TADOConnection ?
Any help appreciated
Glenn
> and how it can be easily
>solved ?
You can change the
ADO 'Update Criteria' dynamic property to something that does not use all fields
ADODataSet1.Properties['Update Criteria'].value :=adCriteriaKey;
Your choices are adCriteriaKey, adCriteriaAllCols (BDE's default),
adCriteriaUpdCols (ADO's default) and adCriteriaTimeStamp.
This property should be should be set after the dataset is opened.
http://support.microsoft.com/default.aspx?scid=kb;EN-GB;q190727&GSSNB=1
>Is this a setting or any option in the TADOConnection ?
No