I need update a field value , increasing the old value. something like ths
UPDATE MYTABLE SET FIELD1=FIELD1+VALUE WHERE ....
but when run the n
Quick guess (nothingto hand right now to play with this) but try putting the parameter in brackets thus;
UPDATE DIPTT SET VALRECON=(:RECON)+(VALRECON) WHERE NUM=:NUM etc
Failing that, your best route might be to construct the SQL statement dynamically for that part eg
FSQL:='UPDATE DIPTT SET VALRECON=VALRECON+' + IntToStr(d1) + ' WHERE NUM=:NUM etc'; AdoQuery.SQL.Text:=FSQL;
then set your Num parameter values (etc) as before