"SELECT (Table).Productname, Sum((Table).Quantitybought) AS SumOfQuantityBought FROM (Table) GROUP BY (Table).Productname;" (Based on my example) (Table) = tablename you used
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)