Thanks everyone for the great help! the form looks great and is totaling as intended. For future reference, here is what I did to exclude credits older than 180 days: First, added detail suppression logic to the detail line. Next, created a running total formula (not a crystal running total). The formula I used is:
WhilePrintingRecords;
NumberVar x;
if not((({#InvoiceBalance} < 0)
AND (DateAdd (""d"",180,{@InvoiceOrTransactionDate}) < CurrentDate))
or
{AR_StatementWrk.OpenItemCustomer} = ""N"" or {AR_StatementWrk.LineNumber} = ""0000000000"")
then
x := x + {@newbalance}
else 0;
One of the bugs I had that kept the records from accumulating was I originally initialized the variable x as local Numbervar. I then tried Shared Numbervar... neither would accumulate the totals in x. NumberVar x was the answer... still not entirely clear why.. I would think defining x as a local variable would work but it doesn't.
Finally, display the final value of x on the totals line (group total):
WhilePrintingRecords;
NumberVar x;
thanks again for the help!