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

Print subreport when no data main report

Status
Not open for further replies.

demoman

Programmer
Oct 24, 2001
242
US
Howdy,

I have a report which prints a billing detail within a date range. The main report prints rental billing info, the subreport prints sales billing info. They have different data sources (Sql Server Views). They are linked by CustomerNumber. Sometimes there will NOT be any data in the main report, but there will be in the subreport. I would greatly appreciate anyone's assistance on how to configure this to work properly.

Thanks!
 
Make both reports into subeports of a master report. The master report can simply read the customer record in the customer table, or it can read something completely unrelated as long as it will always be available. In some versions of CR you could even create a container report that doesn't read any data but simply launches the subreports.

Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Expert's Guide to Formulas / Tips and Tricks / Guide to Crystal in VB
- TEK2(AT)kenhamady.com
 
Ken,

Thanks for the tip. It does make sense, I have deployed it and it does work well. I am just starting out in Crystal. or, at least restarting. I used CR back in the late '80s (maybe early '90s) with R:base. Mostly I have been using Access for reports. I will never go back to Access again. I REALLY like the new CR. Do you have any suggestions for reference books aimed at developers who have extensive background in other report writers?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top