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

Storing Values in Variable Fields in a Subreport

Status
Not open for further replies.

ldalessio

Programmer
Apr 16, 2008
23
US
Good Morning All.
I have a file by room and course - some rooms have one record and others two. I want to read the file and move the first course to variable field 1 and if there is a second course, move that field to the variable field 2. The subreport is grouped by room and I am outputting the results on the group footer. Here are the calcs I am using and I put the formula in the supressed detail section....
whileprintingrecords;
global stringvar period1;
if {SCLRP.CLREXFPRD}='01' then period1:= {SCRRP.CRRSHORT};
period1

The result is that the last record by room is being outted to both variable fields.

Any thoughts??
Thanks.
 
Well, where is the second variable declared? Why are you using variables? What are you trying to do with these values once they are established? Why is the subreport a factor here?

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top