Totals on a report

Hi How do I create a total on a report? Each record has a subtotal (not from the the table, but calculated as Field “X” - Field “Y” on the report), and from these subtotals I would like to create a total.I just don’t know how to do it[?] Regards, Karl

Karl On the Dataitem / Table there is a property TotalFields. Add FieldX and FieldY to that property, then add a textbox in the footer section with the source FieldX - FieldY Or on the PreDataItem section you could add the code CurrReport.CREATETOTALS(FieldX,FieldY);

Thanks a lot