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!

Print Subreport Date Paramenter on Main Report

Status
Not open for further replies.

stuckDuck

Programmer
Jun 30, 2010
30
CA
Help Appreciated! My subreport has date parameters in the page header. I would like to print that date parameter in the page header of the main report.

I tried a shared variable to no avail

Sub:
whileprintingrecords;
shared datevar x:={?end_date};

Main:
whileprintingrecords;
share datevar x:
x = x;

The main report prints true.
 
Just use the following in your main report, in a section below the one containing your subreport.

whileprintingrecords;
shared datevar x;

-LB
 
in a section below the one containing your subreport.

Is there a workaround for this? My subreport is in the group footer but I need the date in the page header.

 
Let's back up --I actually think you should just create the same parameter in the main report, link it to the subreport parameter in the subreport linking screen by using the dropdown in the lower left of the screen to select {?Date} instead of {?pm-?Date}, and then add the main report parameter to the page header.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top