Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to compare records by an ID field in SQL DB

Status
Not open for further replies.

Quelion

Programmer
Apr 17, 2003
1
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top