CR 8.5 (Can use CR 9 if needed)
SQL Database
I've read other strings regarding this and just cannot get this to work. So I'm starting a new string that perhaps will shed some light on what I'm doing wrong.
I have a main report that is retrieving timers an employee has run per file. A file can have multiple timers. My subreport linked by fileID gathers the file information if it has been open between 30 & 180 days. Files can be opened and closed several times and each instance is called activeperiod with a begin_date and end_date. The sum of those days is in the selection criteria. If the subreport is blank, I need the main group to be suppressed. Here is my layout:
Main Report to Get Hours Billed:
GH1-LoginID
GH2-FileID (subreport here) @TotalHours
D- loginID, Charge_date, Hours
GF2-FileID (Suppressed)
GF1-LoginID (empty, used for spacing)
RF
Subreport to get file data:
GH1-FileID (Suppressed)
D- BeginDate, EndDate, @DaysOpen (Suppressed)
GF1-FileID, ClaimantName, EmployerName, Sum(@DaysOpen)
A loginID can have hours each month but if the file has not been open between 30-180 days, the subreport is blank. If the subreport is blank I need the GH2-fileID on the main report to be suppressed.
HELP! I know it involves a Shared Variable but cannot get it to work.
Thank you,
-LLL
SQL Database
I've read other strings regarding this and just cannot get this to work. So I'm starting a new string that perhaps will shed some light on what I'm doing wrong.
I have a main report that is retrieving timers an employee has run per file. A file can have multiple timers. My subreport linked by fileID gathers the file information if it has been open between 30 & 180 days. Files can be opened and closed several times and each instance is called activeperiod with a begin_date and end_date. The sum of those days is in the selection criteria. If the subreport is blank, I need the main group to be suppressed. Here is my layout:
Main Report to Get Hours Billed:
GH1-LoginID
GH2-FileID (subreport here) @TotalHours
D- loginID, Charge_date, Hours
GF2-FileID (Suppressed)
GF1-LoginID (empty, used for spacing)
RF
Subreport to get file data:
GH1-FileID (Suppressed)
D- BeginDate, EndDate, @DaysOpen (Suppressed)
GF1-FileID, ClaimantName, EmployerName, Sum(@DaysOpen)
A loginID can have hours each month but if the file has not been open between 30-180 days, the subreport is blank. If the subreport is blank I need the GH2-fileID on the main report to be suppressed.
HELP! I know it involves a Shared Variable but cannot get it to work.
Thank you,
-LLL