Can someone please help me figure out how to insert a total line for each Customer grouped by CustomerID? I am working on a Trial Balance report that displays multiple customers and what they owe by looping through an SQL DB table. I am trying to compare the current CustID field with the last CustID field and insert a row after each group of Customers to total Amount Due.