Hello, tell me please how to make an automatic calculation of the calculated field SQLQuery1, when changing another numeric field.
When I do this:
procedure TForm1.SQLQuery1Поле1Change(Sender: TField);
begin
SQLQuery1.FieldByName('ВычислПоле') .AsInteger:=SQLQuery1.FieldByName(' Поле1').AsInteger * 2;
end;
The auto save function stops working:
procedure TForm1.SQLQuery1AfterPost(DataSet: TDataSet);
begin
SQLQuery1.ApplyUpdates;
end;
Please tell me how to do it correctly.