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 from subreport not resetting

Status
Not open for further replies.

gillf

Technical User
Aug 14, 2002
35
GB
Version 9: Main report holds details of building contracts, subreport calculates value of costs.
I am using variables to bring through running totals from the subreport to my main report. I have declared the variable in the main report:
Shared NumberVar MatSubVariable;
then am using it in GF#1 of the main report:
WhilePrintingRecords:
Shared NumberVar MatSubVariable;
MatSubVariable

It is bringing through the correct values EXCEPT - where there is a contract with no costs, it repeats the costs from the last contract that did, until it meets a contract which does have costs, when the value changes correctly.

I've tried declaring the variable in various different areas of the main report with no change. This is something to do with telling it to reset on change of group, I think, but I can't remember how to do it ... Doh. Please can someone help?
 
Create a reset formula and insert it in the GH1 and suppress it so it won't show

Cheers,

-LW
 
Thank you - it works! I've been working on this report for MONTHS (one of our Developers said it couldn't be done, so it's a bit of a challenge for girl well stricken in years) and this was the very last bit to make the whole thing run.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top