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!

Where do I reset shared variable

Status
Not open for further replies.

DianaStewart

Programmer
Apr 16, 2002
58
CA
I have a main report and a subreport.

The problem is if a Name field has no value in the backend then the value of the previous name is carried over to that field...

If the names contain data in the backend then the Name fields contain or display the correct values..

Should I reset the Shared Variable?

My subreport is setup as Group (Group Header1), Name (Group Header2)

On the main report my grouping is as: Name (Group Header2)

On the main report the subreport is placed in Group Header1 (Name) and I am displaying the Shared Variable in the Group Footer1..

Where should i reset the variable in the main or subreport? How do I reset the variable, lets say it is Var1?

 

Diana this is the format I use for resetting my Shared variables and it seems to have worked up to now.

WhilePrintingRecords;
Shared numberVar Var1:= 0

I reset my shared variables in the main report and in the header of the same group where I run the sub report

Hope this helps

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top