procedure TForm1.Button1Click(Sender: TObject); var temp:integer; begin adotable1.First; temp:=0; while not adotable1.Eof do begin adotable1.Edit; adotable1.FieldByName('f2').Value:=adotable1.FieldByName('f1').Value+temp; adotable1.Post; temp:=adotable1.FieldByName('f2').Value; adotable1.Next; end; end;
var
temp:integer;
begin
adotable1.First;
temp:=0;
while not adotable1.Eof do
begin
adotable1.Edit;
adotable1.FieldByName('f2').Value:=adotable1.FieldByName('f1').Value+temp;
adotable1.Post;
temp:=adotable1.FieldByName('f2').Value;
adotable1.Next;
end;
end;