Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I pass a variable from a subreport to the main report (CR7.0)

Status
Not open for further replies.

Towim

Technical User
Dec 20, 2001
6
US
I want to pass a numerical value from a subreport to the main report. I tried using the shared numervar declaration, but I can only get the report to pass from Main to Subreport. I need the opposite. The report is using a SQL database, CR 7.0. The subreport data is not directly related to the main report.

Thanks -- TOWIM
 
It will go both ways, as long as the formula that captures the variable is in a section of the main report that occurs AFTER the section that containse the subreport.

Also, start both formulas with:

WhilePrintingRecords;
Shared Numbervar xxx; Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top