Solved

Subreports Record count

Posted on 2006-07-12
5
601 Views
Last Modified: 2008-01-09
Hi All,

I have a subreport inside a main report . the structure is like

GH1 Invoive No
GH1A Subreport --> Invoice Detail
GF1

Subreport is linked with main report with InvoiceNo

The Group Header 1 contains invoice number
the Group Header 1A contains subreport with Invoice details.

Now i want to suppress the GH1 section of main report if its subreport does not contain any record.

Please help me

regards
Vishal
0
Comment
Question by:vishalgoyal123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 5

Expert Comment

by:dkDeveloper
ID: 17090559
Hi vishalgoyal123,

I was wondering what your data source is for this report.  Could you include a count of the detailed line items along side the invoice number and then just conditionally suppress when that count is equal to 0?  If not, I'm afraid this might not be possible since the processing of the subreport occurs after the section you wish to suppress.

Good Luck!
dK
0
 
LVL 42

Accepted Solution

by:
frodoman earned 48 total points
ID: 17093870
dk is right on the money - you can't suppress one section based on the results of a subreport in a subsequent section.

If you can return the count in your primary recordset that's probably the most efficient.  If not, you may be able to run a separate subreport prior to the section that does not but count the records and share the result with the main report.

frodoman
0
 
LVL 35

Assisted Solution

by:James0628
James0628 earned 47 total points
ID: 17095262
Another option might be to eliminate the GH1 section and put whatever was there in the subreport.  Then perhaps the subreport can suppress it if there are no details.  Whether or not that will work will depend on the details of your reports and data.

 James
0

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
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…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

691 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