This is the overall scenario:
I have an A/R aging report summarizing data by the Customer Field.
I want the End-user to decide which of these fields they want to sort by at the time they run the report:
1. Average Aging of Invoices
2. Total Owed
3. Total Owed over 90 days.
The issue is that these values are calculated during the second pass, and I'm not sure how to utilize the "Whileprintingrecords" function in order to perform another sort.
Let me state categorically that I'm fully aware of creating a Field called @SORT_ORDER and having that determined by a User-Entered parameter and sorting on that basis for the group. This IS NOT the issue.
The problem is sorting upon the value after it has been grouped and summarized.
I also know that I could easily combine the 2nd & 3rd sorts into 1 report. The problem is how to sort based upon an Average, while also sorting that same group by a summary value.
I have an A/R aging report summarizing data by the Customer Field.
I want the End-user to decide which of these fields they want to sort by at the time they run the report:
1. Average Aging of Invoices
2. Total Owed
3. Total Owed over 90 days.
The issue is that these values are calculated during the second pass, and I'm not sure how to utilize the "Whileprintingrecords" function in order to perform another sort.
Let me state categorically that I'm fully aware of creating a Field called @SORT_ORDER and having that determined by a User-Entered parameter and sorting on that basis for the group. This IS NOT the issue.
The problem is sorting upon the value after it has been grouped and summarized.
I also know that I could easily combine the 2nd & 3rd sorts into 1 report. The problem is how to sort based upon an Average, while also sorting that same group by a summary value.