BradCustom
IS-IT--Management
I'm using Crystal 2008 and I have a question on if a shared variable can be used in either a record selection or group selection.
The report is structured as follows:
The main report has two tables, Jobs and Customers
The subreport has two tables, Job Operation and Job Operation Time
The main and subreport are linked by the job field.
The subreport has many records for each job so I've created the following formula so that only the maximum work date is shown.
This value is then passed to the main report using the following formula
On the main report I'd like to limit the selection to records who's maximum work date falls between "date X" and "date y".
I tried creating a parameter on both the main an subreport but the Maximum Work Date formula and the Pass formula are not available.
Any help with this issue would be appreicated.
The report is structured as follows:
The main report has two tables, Jobs and Customers
The subreport has two tables, Job Operation and Job Operation Time
The main and subreport are linked by the job field.
The subreport has many records for each job so I've created the following formula so that only the maximum work date is shown.
Code:
Maximum ({Job_Operation_Time.Work_Date})
This value is then passed to the main report using the following formula
Code:
whileprintingrecords;
shared dateTimeVar maxwork := Maximum ({Job_Operation_Time.Work_Date})
On the main report I'd like to limit the selection to records who's maximum work date falls between "date X" and "date y".
I tried creating a parameter on both the main an subreport but the Maximum Work Date formula and the Pass formula are not available.
Any help with this issue would be appreicated.