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)? 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>