Solved

subreport supress and show 'no records'

Posted on 2013-05-20
4
458 Views
Last Modified: 2013-05-21
I have a summary and a detail section inside a main report (via subreports) I have it so the users show in the summary even if they don't have calls. Unfortunately the detail in the second subreport will show a 'blank' call page. I want to supress this detail and replace it with a text that says 'no calls exist for this user' Is there a way to do this based on logic like this

If subreport is blank show group header three (which will contain the message) ?
0
Comment
Question by:gilweber3
  • 2
4 Comments
 
LVL 4

Expert Comment

by:Kent Fichtner
ID: 39181585
What I would do is make a formula in the main report that has the call amount.

SHARED NumberVar CallAmount = <amount here>

Then in the subreport, you can split the details in to Detail A and Detail B.  Create another Formula in the subreport

SHARED NumberVar CallAmount;

Then on Detail A do a suppression based on formula

CallAmount = 0

In Detail B, put a text box that reads "No calls exist for this user".  Put a suppression based on a fomula

CallAmount <> 0

This should do what you want it to.  Hope that helps a little.
0
 

Author Comment

by:gilweber3
ID: 39181680
The Call amounts are actually in the two subreports. The main report is just a shell for the Hierarchy and contains the 2 sub reports in group headers.
0
 
LVL 4

Expert Comment

by:Kent Fichtner
ID: 39181745
oh...that is great.  Then you don't need to do the formula, just use the database fields in the suppression based on the formula.
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 39181746
You can suppress blank subreports in the SUBREPORT FORMAT
You can suppress a blank section in the SECTION EXPERT

You can use the shared variable described above to suppress a new GROUP HEADER SECTION that has your message.

mlmcc
0

Featured Post

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Crystal Reports Sub Report 4 86
Crystal Reports Format Field with Dashes 6 50
Crystal Reports 13 5 61
How to create code39 alphanumeric barcodes in  Crystal Reports? 10 54
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question