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

how to suppress subreport

Status
Not open for further replies.

calvi

Technical User
May 26, 2003
87
NL
with making a subreport on an existing one is a problem that the subreport shows repeatedly for the next record. How to solve? there is a button in edit subreport suppress if duplicated, but this does not work with my report.
e.g.:

-------report1.rpt --------- ---------subreport -------

DATE LOCAL GROUP | TIME CONTACT NOTE
27-05-03 School technicians |8:00-13:00 John clean
9:00-17:00 |9:00-11:00 Mark furnis

27-05-03 Store salesmen |8:00-13:00 John clean
9:30-16:00 |9:00-11:00 Mark furnis

How do i prevent that the subreport shows twice?
 
which field link do i need? now i link the reports in timefield.
 
which distinct key field does it matter? with this case you can pick date as link but this also shows twice records of subreport. So I shouold choose another field that is on the table and not in the report? may be unique_id?
 
Crystal has its own fixed pattern of doing things. When it comes to suppressing a section, it is no good checking the output from a subreport within the section, because the subreport is processed after the suppress logic.

The standard work-round is to have an invisible duplicate of the subreport, to get the value and decide whether to suppress. See thread782-477236 for details. This is a solution for blank reports, but the same method should work for duplicates.

Madawc Williams
East Anglia, Great Britain
 
I haven't got it done yet, i add another same subreport and suppress it one or the other, but still the result is the same: for my next record of the same date of the main report i get the same subreport showing as the previous one. Can I make this subreport showing just one time by coding with a formula?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top