473,756 Members | 6,852 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Two Subreports in one Report - Redundant Data

4 New Member
I have a report that keeps track of sales by company for any given month within a year. I am using two subreports embedded within a report to produce 2006 (one subreport) and 2007 (the other subreport) sales by station for any month I choose. The report works but I have two issues:

1) The subreports are located in the detail section of the report. The report should be three pages long but the report keeps repeating the data for a total of 27 times. What am I missing that makes this data repeat?

2) The 2 subreports are based on two separate queries and pull data from 2006 and 2007 but for the same month. On the first two outputs of the report (out of the 27 repeats > see Question 1) my group headers which lists the years does not appear. It begins to appear on the third output of the report.

Help?

baool
Apr 5 '07 #1
7 6474
MMcCarthy
14,534 Recognized Expert Moderator MVP
I have a report that keeps track of sales by company for any given month within a year. I am using two subreports embedded within a report to produce 2006 (one subreport) and 2007 (the other subreport) sales by station for any month I choose. The report works but I have two issues:

1) The subreports are located in the detail section of the report. The report should be three pages long but the report keeps repeating the data for a total of 27 times. What am I missing that makes this data repeat?

2) The 2 subreports are based on two separate queries and pull data from 2006 and 2007 but for the same month. On the first two outputs of the report (out of the 27 repeats > see Question 1) my group headers which lists the years does not appear. It begins to appear on the third output of the report.

Help?

baool
It's hard to tell what's going on. How are the subreports tied to the main report. What is the main report based on and are there any group headers on the main report. It sounds like the main report has 27 records which is why the subreports are repeating 27 times.

Mary
Apr 6 '07 #2
baool
4 New Member
It's hard to tell what's going on. How are the subreports tied to the main report. What is the main report based on and are there any group headers on the main report. It sounds like the main report has 27 records which is why the subreports are repeating 27 times.

Mary
The main report is based off 2 separate queries that I created that list sales for any given month for 2006 (one query) and 2007 (the second query). The only information that the main report pulls from the queries is years (one group header) and the month (another group header).

As mentioned before, under the detail section of the main report I added two sub reports that list the actual sales by record. After posting this message yesterday, I moved the subreports to the year group header (moved from the detail section) and the repeating data was eliminated. Now the report repeats itself only two times.

The first set of the report is identical to the second set but it does not contain the year and month group headers from the main report. These headers only appear in the second repeat of the report.

How can I eliminate the first set of the report that does not include the group headers from the main report?
Apr 6 '07 #3
MMcCarthy
14,534 Recognized Expert Moderator MVP
You haven't said how the subreports are tied to the main report?

Also I would put the reports in the Group Footer rather than the group header. And put them in the Year rather than the month footer.
Apr 6 '07 #4
baool
4 New Member
You haven't said how the subreports are tied to the main report?

Also I would put the reports in the Group Footer rather than the group header. And put them in the Year rather than the month footer.
I'm not sure how the subreports are linked to the main report but what I did was create two queries and copied and dragged them into the design of the main report. If you are referring to the link Child and link Master functions I currently do not have anything inputted in those fields.

The issue now is that on the first copy/set of the report it does not include the month header or the year header. These headers only appear on the second copy/set of the report. How do I get rid of the first duplicate of the report?
Apr 6 '07 #5
MMcCarthy
14,534 Recognized Expert Moderator MVP
I'm not sure how the subreports are linked to the main report but what I did was create two queries and copied and dragged them into the design of the main report. If you are referring to the link Child and link Master functions I currently do not have anything inputted in those fields.

The issue now is that on the first copy/set of the report it does not include the month header or the year header. These headers only appear on the second copy/set of the report. How do I get rid of the first duplicate of the report?
If the subreports are in the group footer of the Month then put the month in the master child join. If it's in the Year then put the year in.

Mary
Apr 6 '07 #6
baool
4 New Member
If the subreports are in the group footer of the Month then put the month in the master child join. If it's in the Year then put the year in.

Mary
You are a genius! The report does not repeat anymore but the first page is now blank (only the page header shows no detail). If you know how to troubleshoot this please let me know, If not then it is ok.

Thank you for all your help.
Apr 6 '07 #7
MMcCarthy
14,534 Recognized Expert Moderator MVP
You are a genius! The report does not repeat anymore but the first page is now blank (only the page header shows no detail). If you know how to troubleshoot this please let me know, If not then it is ok.

Thank you for all your help.
Check the properties on the groups. Either the Start New Page or Keep Together property are probably causing this.
Apr 7 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1970
by: Anne | last post by:
I have a report containing multiple subreports (approximately 37 subreports) that are based on individual queries. The query calls to only display the subreport if there is valid data in the table (that the subreport is based on). Because the subreport may not always appear, there are spaces in between the subreports that do contain valid data. Is there any way to resize or reformat the main report so all subreports with valid data...
1
2130
by: Don Sealer | last post by:
I have a report that includes 5 different subreports. I'd like to be able to open this report using a date function (Start Date and End Date). I'd like all five subreports to show the data from those dates. I have learned how to use this start/end function but I can't figure out how to use it with these subreports. Right now the report opens but asks for start/end dates for each of the five reports. Is there a way I can input one set of...
0
1305
by: Don Sealer | last post by:
I have a report that includes 5 different subreports. I'd like to be able to open this report using a date function (Start Date and End Date). I'd like all five subreports to show the data from those dates. I have learned how to use this start/end function but I can't figure out how to use it with these subreports. Right now the report opens but asks for start/end dates for each of the five reports. Is there a way I can input one set of...
2
2014
by: Henrootje | last post by:
I have a report concerning a customer. In this report we find four subreports. They are in layout identical but data comes from different tabel. Now on the main report I count the totals of each report and sum them; =.!+.!+.! But if of of the subreports has no data for example because it has no data I get an error...
1
3590
by: David | last post by:
Folks, I have four subreports in a report in the detail section. I suppose I could move them to the footer of the report. Anyway, if any of them have data, I want the main report to force a page break. I am trying to use the "hasdata" property for the subreports, but I am getting the generic error indicating property not available for object. How does one tell the main report (using VBA) not to throw in a page break unless the...
3
1729
by: DeanL | last post by:
Hi all, I'm currently pulling out my already thin hair and need a little help if possible. I have an Access 97 db that is used to store inspection information for different regions. My report is meant to show the number of inspections done in each region and what ratings they achieved as below: Region Green Yellow Red NR Total
0
1519
by: billygotee | last post by:
Hi, I'm having an issue with VS .NET 2k5. I have a master report that is the parent of several subreports (the report got too big to keep it all in the same report). For a while this worked fine, the BuildAction property of each was set to Embedded Resource, and the subreport name was all I needed to change in the master report for each to be displayed (I handled the SubreportProcessing event to deal with data sources).
6
5453
by: Brett Barry: Go Get Geek! | last post by:
Hello, I have a main report with a Record Source, a DateToday table, that has the current Month and Year. I have about 60 queries, each pulling different data via ODBC, that I am creating subreports that go on the main report. The problem is that when I run the report the data shows on the screen but not the print preview. I am aware that the main report is not linked to the subreports because of the Link Master, Child Fields issue....
10
3178
by: glenfernandez | last post by:
HI there, Need a little help with the reporting component of my MS Access 2002 project and would appreciate any insight / help from the experts. Please bear with me as I am still learning Access and this is my first project using it. I'm generating a financial reporting system for a bank and have created a form for user input to dynamically generate the financial reports. So far everything is coming along ok. The reporting options allow...
0
9384
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9212
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9973
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9645
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6473
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5247
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3742
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3276
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2612
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.