Pb TSimpleDataSet : "command out of sync"
Bonjour, Voila mon probleme :
Je suis sous Delphi 7 et Mysql par DbExpress. Je voudrais modifier un enregistrement en passant par un TSimpleDataSet mais j'ai le message la : "Commands out of sync..."
Mon TSimpleDataSet contient une query qui fait un "select * from ecriture"
Voici mon bout de code mais je ne vois pas du tout d'ou ca peut venir :
Code:
1 2 3 4 5 6 7 8
|
TSimpleDataSet1.Filter := 'no_ecr = 6';
If TSimpleDataSet1.Findfirst then
begin
TSimpleDataSet1.Edit;
TSimpleDataSet1.FieldByName('no_ecr').AsInteger := 15;
TSimpleDataSet1.ApplyUpdates(-1);
end; |
Il me semble qu'avec un TClientDataSet il faut fermer la query ou la table mais la je n'ai rien a part mon TSimpleDataSet. Comment faire ????