LazReport: How to use sum() function? lazarus / 13-General ---------------------------------------------------------------------- nix_d · 2008-02-18 05:44 I try to create report with summarize in the end of report. I was using function [sum('qty')]  but when the report is shown, there was error message: "Access violation  bla.bla." Anyone can tell me where the problem is (are)? Im using MySql 5 as database. ---------------------------------------------------------------------- OnixJr · 2008-02-23 18:50 Hi, LazReport has a problem with agretate functions (sum, max, min)... As a workaround, I was using a variable and got the sum with SQL (Select sum(field) from blablabla)... But this bug has fixed in revision 14234 (Lazarus 0.9.25 SVN) by Aleksey Lagunov.. Please, update your lazarus version and you can use sum function as following (Put this in text of a memo inside of report): Code: [Select] [SUM([dsReport."Price"])] Where: dsReport: TDataSet (TDbf, TSqlite or other)... LazReport need be connected with it... Price: The field where sum will be calculate...