In my subreport I have a field called Desired_ship_date that I want to pass to my main report. Not every record in the main report will have records in the subreport so Desired_ship_date from the subreport will be null on some records. When I try my shared date variable, it works on the first record which does have information in the subreport. My second report in the main report does NOT have information in the subreport and the shared variable shows the value from the first record. How do I use my shared date variable only when it is NOT null? I do have the shared variable in a section below the section containing the subreport. More information on my formulas below:
in the subreport
WhilePrintingRecords;
Shared dateVar DS_DES_SHIP_DATE:= {DESIRED_SHIP_DATE}
in the main report
WhilePrintingRecords;
Shared dateVar DS_DES_SHIP_DATE;
DS_DES_SHIP_DATE
in the subreport
WhilePrintingRecords;
Shared dateVar DS_DES_SHIP_DATE:= {DESIRED_SHIP_DATE}
in the main report
WhilePrintingRecords;
Shared dateVar DS_DES_SHIP_DATE;
DS_DES_SHIP_DATE