MyQuery1:
[code]SELECT name, Count(name) AS quant FROM Table1
GROUP BY name[/code]
Now I like to delete some records from MyQuery without deleting an entry in Table1
[code]IF MyQuery.Locate('name',"name to delete,[]) THEN MyQuery.Delete;[/code]
I get a message: Update Failed
I can do[code] CREATE TEMPORARY TABLE Table2 etc.[/code] and read the records from MyQuery1
into Table2 and after that delete the records but it is not elegant.
Anybody knows a solution?
Thanks for your time Teunis