How do I edit after ORDER BY?
The following works but then I lose the ability
to edit records. Can someone please tell me
how to rectify this.
procedure TfrmContacts.btnOrderClick(Sender: TObject);
begin
DMCntcts.Query1.SQL.Clear;
DMCntcts.Query1.SQL.Add ('SELECT *');
DMCntcts.Query1.SQL.Add ('FROM "c:\h\StdCont\Tables\Cntcts.db"');
DMCntcts.Query1.SQL.Add ('ORDER BY CoName');
DMCntcts.Query1.Active := True;
end;
The following works but then I lose the ability
to edit records. Can someone please tell me
how to rectify this.
procedure TfrmContacts.btnOrderClick(Sender: TObject);
begin
DMCntcts.Query1.SQL.Clear;
DMCntcts.Query1.SQL.Add ('SELECT *');
DMCntcts.Query1.SQL.Add ('FROM "c:\h\StdCont\Tables\Cntcts.db"');
DMCntcts.Query1.SQL.Add ('ORDER BY CoName');
DMCntcts.Query1.Active := True;
end;