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!

From Subreport send a Parameter back to Report

Status
Not open for further replies.

Bobimann

Programmer
Jan 6, 2003
17
CH
I want send from the Subreport a parameter back to Mainreport.
THX4HELP

info@professional-line.ch
 
Bobiman,

THe only way I know how to do this is to use shared variables. In the main report create a formula field as:

shared stringvar test1:='';

You can use different declarations for different variable types.

In the subreport create a formula field as:

shared stringvar test1:= value where value is the field you want to pass back.

In the new report create a different formula field as:

shared stringvar test1;

Variables became available in version 7.
 
You can use the same idea, but of course you can not use the parameter as a filter in the main report. WHat you could also do is create the parameters in the main report and use them in the linking of the subreport.

When doing this you should scroll down to the parameter name in the subreport and not use the default {?pm...} parameter. There should be scroll arrows but these are not very clear.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top