This Subject may look familar and that is becuase it is the same subject line of something in the Crystal Knowledge Base. It however does not answer the questions to my problem.
I have a main with 7 subreports. There is grouping done on the main report and via the subreport links my detail from the subreports group just fine.
Here is the problem. I have some subtotals that come at the end of the subreports. What I need is to get this subtotal on to the main report so I can plot them in a summary section of the main report.
I have used the Shared Variables and all is well except for the groups. Example, say my subreports are called 'A','B','C', and 'D'. If in the first grouping on the main report, only subreports 'A' & 'C' have data. The summary page displays the summary correctly. If the next grouping only has data in subreport 'A' then the summary shows the correct values for subreport 'A' but it also shows values from subreport 'C', where there is no data.
It is like if the previous grouping has data in a subreport and the subsequent subreports don't, the shared variable retains the previous value when it should be NULL and it is carrying foward. If the subsequent subreports do have data then the variable value does change to the correct amount.
I hope I make sense. I am pretty new to Crystal so I have not got a grasp over Shared Variables and how the reports processes.
In MS Access which is what the report was originally converted from it worked just fine. But in Access you could refererence the subreport object then reference the field in the subreport. It was real easy and you did not have to worry about what section came first or what ever. Remember the Past, Plan for the Future, yet Live in the Present for tomorrow may never come.
-etrain
I have a main with 7 subreports. There is grouping done on the main report and via the subreport links my detail from the subreports group just fine.
Here is the problem. I have some subtotals that come at the end of the subreports. What I need is to get this subtotal on to the main report so I can plot them in a summary section of the main report.
I have used the Shared Variables and all is well except for the groups. Example, say my subreports are called 'A','B','C', and 'D'. If in the first grouping on the main report, only subreports 'A' & 'C' have data. The summary page displays the summary correctly. If the next grouping only has data in subreport 'A' then the summary shows the correct values for subreport 'A' but it also shows values from subreport 'C', where there is no data.
It is like if the previous grouping has data in a subreport and the subsequent subreports don't, the shared variable retains the previous value when it should be NULL and it is carrying foward. If the subsequent subreports do have data then the variable value does change to the correct amount.
I hope I make sense. I am pretty new to Crystal so I have not got a grasp over Shared Variables and how the reports processes.
In MS Access which is what the report was originally converted from it worked just fine. But in Access you could refererence the subreport object then reference the field in the subreport. It was real easy and you did not have to worry about what section came first or what ever. Remember the Past, Plan for the Future, yet Live in the Present for tomorrow may never come.
-etrain