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

Stacking Subreports

Status
Not open for further replies.

herschelrj

Programmer
Jan 12, 2005
24
US
Question...

I wouls like to display the information from one subreport. But if that report is blank, I wouls likw to display the second subreport. Some of the records have information in both. I want to display the first one only if both contain data. Any ideas?

Display CTY Credentials. If none, display SDCS Credentials.

Thanks

herschelrj
 
In your first subreport, create a shared variable, as in:

whileprintingrecords;
shared stringvar CTY;

if isnull({table.CTYCredentials}) then
CTY := "" else
CTY := {table.CTYCredentials};

Place this on the first subreport instead of the field {table.CTYCredentials}.

In the second subreport, create a formula:

whileprintingrecords;
shared stringvar CTY;

if CTY = "" then {table.SDCSCredentials} else ""

Place this on the subreport instead of {table.SDCSCredentials}.

-LB

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top