Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADO Query in Batch Optimistic Mode "Row deleted..."

Status
Not open for further replies.

Taltoss

Programmer
Sep 13, 2005
3
CA
Hello All

My question is in regards to a Delphi 2005 Win32 App I am working on. I have two queries, both of which are set to ltBatchOptimistic, whenever I try and "Cancel" the Data I get a "Row Handled is marked for deletion or has been deleted" error. Below is the Cancel code.

procedure TdmLogInfo.CancelJob;
var
i: smallint;
begin
for i := 0 to high(aTables) do begin
with aTables do begin
DisableControls;
try
if (State in [dsEdit,dsInsert]) then Cancel;
CancelBatch(arCurrent);
finally
EnableControls;
end;
end;
end;
end;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top