Need to prevent DELETE if some condition is satisfied in ADOTable1.BeforeDelete event. But, ADOTable1.Cancel doesn't work (Record is deleted). Any idea?
procedure ...
// this is your routine that calls to Post method
// of your Table
begin
...
try
ADOTable1.Post;
except
ADOTable1.Cancel;
end;
...
end;
procedure ADOTable1BeforePost(...);
begin
...
if (not <your condition>)then
Abort();
...
end;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.