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!

Can I have the subreports share the field with main report?

Status
Not open for further replies.

stevenzhang

Programmer
Jan 22, 2003
1
CA
I made one main report which hold ten subreports. Each sub report has the same group title from the group_title field.If I want to change the format of the title,I have to change each subreport title.So I wonder if I can put the title in the main report and when the different subreport was displayed, it will share the title with the main report.Even if I want to change the title, I only change once from the main report! Any one can help me? Thanks!
 
I'd leverage the File->Summary Info->Report Title field and create a formula to share this based on a shared variable.

In the main report create a formula with:
shared stringvar RepTitle :=ReportTitle;
RepTitle

Place this formula in the Report Header and use it for the title.

In each subreport create a formula akin to:
shared stringvar RepTitle;
RepTitle

to be used as the report title.

Now if you change the Main Report File->Summary Info->Report Title field, all subreports will change to the same title.

-k kai@informeddatadecisions.com
 
In the main report create a formula such as:
Shared stringVar myTitle := "some title text";

In each of the subreports create the same formula. Place it somewhere in the subreport (i.e. report header) and the same title should show up on every sub.

I do this with titles, variables, arrays etc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top