set
adoquery1.executeoptions.eoasyncfetch := True;
adoquery1.CursorLocation :=clUserClient;
procedure TForm1.Button1Click(Sender: TObject);
begin
with Adoquery1 do
begin
close;
open;
end;
end;
procedure TForm1.ADOQuery1FetchProgress(DataSet: TCustomADODataSet;
Progress, MaxProgress: Integer; var EventStatus: TEventStatus);
var
i:integer;
begin
ProgressBar1.step:=ProgressBar1.Max div MaxProgress;
for i:=1 to MaxProgress do
ProgressBar1.StepIt;
ProgressBar1.StepBy(ProgressBar1.Max-ProgressBar1.Position);
end;