In a recent Crystal Report I was working on, I had a need to share a variable between a subreport and the main report so I could suppress rows based upon the value returned in the subreport. Normally, any value within a subreport is not visible to the Formula Editor. The key is to then to use a shared variable to pull the data into the main report where it's visible within the editor.
Because in the normal processing flow, subreports are exectuted in the 2nd pass, after record retrieval,
No comments:
Post a Comment