Just feedback what I did:
1. Created a private procedure: UpdateTTLClients
procedure UpdateTTLClients;
begin
if QryTTLClients.Active then QryTTLClient.Close;
QryTTLClients.SQL.Text:= 'SELECT COUNT(*) AS TTL FROM CLIENTS;
QryTTLClients.Open;
EditTTLCntks.ReadOnly:= False;
EditTTLCntks.Text:= QryTTLClients.FieldByName('TTL').AsString;
EditTTLCntks.ReadOnly:= True;
end;
2. Added an extra Query component just for running the query separate from the main QryClients and called it QryTTLClients
3. Of course, need to add in your Form Create: QryTTLClients.Database:= ConnectClients; and QryTTLClients.Transaction:= TransClients
4. Then in your QryClientsAfterDelete and AfterPost just run UpdateTTLClients.
It works ...