I am using CR V8.5 Pro, connected to an SQL 2000 server using the ODBC components in Windows XP.
I have a Customer Credit report that states the final due date of payment in the top section of the main report. There is a sub-report in the Details section of the Main report that displays the separate invoices and displays a total owed. The sub-report is passed the customer ID and the cut-off date from the main report. As part of the sub-report, there is a formula calculating the date of the last customer invoice before the cut-off date.
How do pass that last invoice date back up to the Main report AND have it displayed at the top of the main report?
The problem happens when a customer has not purchased anything for about 2 months, but asks for a statement. You supply the customer account number and today's date...the sub-report shows the last invoice to be 30th May 2003, but the Payment Due date in the main report is August 20th; when it should be June 20th. If I could pass the last date of a customer's invoice backup to the main report, I could display the 20th day of the month following that last invoice.
I have been experimenting with Shared variables with no luck. It works fine if the date is displayed on the main report after the sub-report. I would really like to avoid changing the Customer Credit report layout...but maybe it's the only way.
I need a "Don't Process This Formula Until Everything Else In This Report Has Finished" function.
Advice welcome...
Paul