cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal 2013 Shared Variable results offset by 1 row

Former Member
0 Kudos

I have created a shared variable from a subreport. I have placed the shared variable formula in the footer of the sub report. I then created a formula referencing the shared variable in the main report. I have created a section above the details and put the subreport there. I have put main variable formula into the details section below the subreport. Details A contains the subreport. Details B contains the main fields and formulas. However, the variable field displays results that are off by one row. (Row 1 is blank. Row 2 contains the result for Row 1, Row 3 contains the results for Row 2 and so on). The subreport is actually reflecting the correct values. There's definitely something wrong with the variable but I can't figure it out.

Sub Report Variable Formula

whileprintingrecords; Shared DatetimeVar Var_RdyForTest:= Date(0,0,0); Var_RdyForTest:={AUDIT_LOG.AU_TIME}; Var_RdyForTest;

Main Report Variable Formula

whileprintingrecords; Shared DatetimeVar Var_RdyForTest; Var_RdyForTest;

Accepted Solutions (0)

Answers (1)

Answers (1)

abhilash_kumar
Active Contributor
0 Kudos

Hi Scot,

Would you be able to attach a copy of the report 'with saved data'?

-Abhilash