473,379 Members | 1,312 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,379 software developers and data experts.

Two Subreports in one Report - Redundant Data

4
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 6454
MMcCarthy
14,534 Expert Mod 8TB
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
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 Expert Mod 8TB
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
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 Expert Mod 8TB
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
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 Expert Mod 8TB
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
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...
1
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...
0
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...
2
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...
1
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...
3
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...
0
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...
6
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...
10
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.