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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Variable shared from subreport to main report

Status
Not open for further replies.

SFinch

Programmer
Jun 16, 2000
9
US
Could someone please show me a working example of how to declare a shared variable in a subreport and use it in the main report (SCR7)?&nbsp;&nbsp;Peck explains it on pages 254-255, but I can't seem to get it to work.<br><br>Peck says in the subreport:<br><br>WhilePrintingRecords;<br>Shared CurrencyVar CreditTotal := Sum ({Credit.Amount})<br><br>In the Main:<br><br>WhilePrintingRecords;<br>Shared CurrencyVar CreditTotal<br><br>Do these functions have to have specific names?<br><br>Thank you in advance,<br>Scott Finch<br>
 
Thank you, that article helped, I finally got it to work.<br><br>Scott
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top