How does one reset a running total after a subtotal?

I'm trying to write a statement-like report with a running balance for each account but haven't been able to reset the running total to zero after each customer.

Hope someone can help.