473,411 Members | 2,185 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

Blank Sub Reports - A variation

JW
The problem of hiding / showing a sub reports on No Data is often asked, my
problem here is a little different.

My Main report has, as a page header, company details (so each company to a
new page). My detail contains four sub reports (linked as child by
CompanyID to the master) each report may be blank or may have data. If all
subreports are empty my page just has the Company detail in the header and
an otherwise blank page.

The main report is based on the table of companies, the subreports are based
on queries that check for missing data, the only common factor in all child
reports is the CompanyID.

Can anyone tell me how to only have pages where there is a related child
report?

Thank you,

Jon

Nov 12 '05 #1
1 3383
Use a query as the source for the main report.
In the query, use a subquery or joins to eliminate companies that have no
child records.

For example, include the related tables in the company query, ensuring that
you use outer joins. In the query, add a WHERE clause such as:
NOT (table1.ID Is Null AND table2.ID Is Null AND table3.ID Is Null)

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html

"JW" <jon_webb@#NOSPAM#yahoo.com> wrote in message
news:bj**********@hercules.btinternet.com...
The problem of hiding / showing a sub reports on No Data is often asked, my problem here is a little different.

My Main report has, as a page header, company details (so each company to a new page). My detail contains four sub reports (linked as child by
CompanyID to the master) each report may be blank or may have data. If all subreports are empty my page just has the Company detail in the header and
an otherwise blank page.

The main report is based on the table of companies, the subreports are based on queries that check for missing data, the only common factor in all child reports is the CompanyID.

Can anyone tell me how to only have pages where there is a related child
report?

Thank you,

Jon


Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: thefirstwml | last post by:
I am using Visual Studio.NET 2002 Professional and am attempting to create a report on Crystal Reports for .NET. I know that Crystal Reports can group on anything, and when I add multiple...
6
by: Melissa | last post by:
Does anyone have a generic procedure for adding blank lines to reports like Sales details, PO details and/or Orders details. The procedure would need to count the number of line items, determine...
7
by: peggyfiorentino | last post by:
I'm an intermediate Access user. I have 3 summary reports that I would like to combine on one report. I tried to create a report in design view using 3 seperate subreport boxes. Specifying the...
4
by: Robert McClenon | last post by:
I am having a minor but annoying problem with some reports in Access 2003. (I had the same problem with Access 97, so it isn't version-dependent.) Some of the reports that I originally developed...
2
by: drdave | last post by:
All is working well for my dropdown/datagrid except I cannot figure out how to set my ddl selected index when the value is blank/null. ie before edit mode the lblVariation text value is blank.....
3
by: Brad | last post by:
I have just posted a variation of this question on the Crystal Reports board, but most times I do not get a reponse. I have a report in which I asked about yesterday and after working all day on...
5
by: sara | last post by:
I've looked at all the posts I could and don't see the solution. I am aware that the format to get a BLANK when the number is 0 is: $ #,###.00;($ #,###.00);"" But I can't, for the life of me,...
10
by: Lorie0114 | last post by:
Hello, We have an issue that I do not know how to resolve. Our website has several hundred reports. There are a handful of them that are causing issues when there is no interaction for a couple...
2
by: Diyaaa | last post by:
HI i have a problem with oracle reports 6i. the output has 1000s of lines. in my output first to 999th line is fine..bt then 1000th line is blank and again the data continues to be shown from...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.