If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
Report prints data twice on two different pages
I have a report that contains three sub reports everything is working
correctly as far as the output except the one page report repeats its self on a second page with all the same info except the header. Is this a setting I have wrong or a format issue? Let me know if more info is needed for this issue. Thanks |
#2
|
|||
|
|||
Report prints data twice on two different pages
Usually this suggests you have a level of detail in your main report's Record
Source that should only be in a subreport. -- Duane Hookom Microsoft Access MVP "Xfree" wrote: I have a report that contains three sub reports everything is working correctly as far as the output except the one page report repeats its self on a second page with all the same info except the header. Is this a setting I have wrong or a format issue? Let me know if more info is needed for this issue. Thanks |
#3
|
|||
|
|||
Report prints data twice on two different pages
When you say level of detail are you saying I may have fields in the main
report that should only show up in the sub reports? "Duane Hookom" wrote: Usually this suggests you have a level of detail in your main report's Record Source that should only be in a subreport. -- Duane Hookom Microsoft Access MVP "Xfree" wrote: I have a report that contains three sub reports everything is working correctly as far as the output except the one page report repeats its self on a second page with all the same info except the header. Is this a setting I have wrong or a format issue? Let me know if more info is needed for this issue. Thanks |
#4
|
|||
|
|||
Report prints data twice on two different pages
You are somewhat correct. It's more like you have a detail table in your main
report's record source that should not be included. -- Duane Hookom Microsoft Access MVP "Xfree" wrote: When you say level of detail are you saying I may have fields in the main report that should only show up in the sub reports? "Duane Hookom" wrote: Usually this suggests you have a level of detail in your main report's Record Source that should only be in a subreport. -- Duane Hookom Microsoft Access MVP "Xfree" wrote: I have a report that contains three sub reports everything is working correctly as far as the output except the one page report repeats its self on a second page with all the same info except the header. Is this a setting I have wrong or a format issue? Let me know if more info is needed for this issue. Thanks |
#5
|
|||
|
|||
Report prints data twice on two different pages
Daune,
I am still battling this issue, I have removed fields but I am still getting the sub-report section printing twice. Any other ideas? "Duane Hookom" wrote: You are somewhat correct. It's more like you have a detail table in your main report's record source that should not be included. -- Duane Hookom Microsoft Access MVP "Xfree" wrote: When you say level of detail are you saying I may have fields in the main report that should only show up in the sub reports? "Duane Hookom" wrote: Usually this suggests you have a level of detail in your main report's Record Source that should only be in a sub-report. -- Duane Hookom Microsoft Access MVP "Xfree" wrote: I have a report that contains three sub reports everything is working correctly as far as the output except the one page report repeats its self on a second page with all the same info except the header. Is this a setting I have wrong or a format issue? Let me know if more info is needed for this issue. Thanks |
#6
|
|||
|
|||
Report prints data twice on two different pages
Mor Likely you need to remove a table from the query rather than fields.
Of course you can use SELECT DISTINCT ... and remove all the fields from the tables that are being used in the sub-report. John Spencer Access MVP 2002-2005, 2007-2008 The Hilltop Institute University of Maryland Baltimore County Xfree wrote: Daune, I am still battling this issue, I have removed fields but I am still getting the sub-report section printing twice. Any other ideas? "Duane Hookom" wrote: You are somewhat correct. It's more like you have a detail table in your main report's record source that should not be included. -- Duane Hookom Microsoft Access MVP "Xfree" wrote: When you say level of detail are you saying I may have fields in the main report that should only show up in the sub reports? "Duane Hookom" wrote: Usually this suggests you have a level of detail in your main report's Record Source that should only be in a sub-report. -- Duane Hookom Microsoft Access MVP "Xfree" wrote: I have a report that contains three sub reports everything is working correctly as far as the output except the one page report repeats its self on a second page with all the same info except the header. Is this a setting I have wrong or a format issue? Let me know if more info is needed for this issue. Thanks |
#7
|
|||
|
|||
Report prints data twice on two different pages
This scenario is pretty close to what I have been struggling with. I posted
in both the reports and queries categories and have received several helpful suggestions; however, none resolved my problem. I did learn a lot about sql code though. In the meantime, I have based my report on the main table selecting just the fields that I need so that I have only one instance of each record. Then I added subreports for the two other tables which are joined by the CustomerID field in each table. The report LOOKS great; however, I only want to see the data for records in the main table based on criteria in the second table; AND, I want to see the third subreport for those same records even though there is no data in the third table to correspond. Some of the suggestions received previously didn't work. I followed the suggestion for making a query to select the records from the main table based on the second table criteria which would return only the records I wanted and got a query with exactly what I wanted; however, when I made a report from the query, the records repeat based on the number of records in the second table that apply to the record in the main table. Is there any way to send my file for analyzing the codes to Duane? Any suggestions will be greatly appreciated!!!! Regards! "Xfree" wrote: I have a report that contains three sub reports everything is working correctly as far as the output except the one page report repeats its self on a second page with all the same info except the header. Is this a setting I have wrong or a format issue? Let me know if more info is needed for this issue. Thanks |
#8
|
|||
|
|||
Report prints data twice on two different pages
Apparently your main report's record source query should be a totals query
that outputs only the main tables records. -- Duane Hookom Microsoft Access MVP "Perplexed" wrote: This scenario is pretty close to what I have been struggling with. I posted in both the reports and queries categories and have received several helpful suggestions; however, none resolved my problem. I did learn a lot about sql code though. In the meantime, I have based my report on the main table selecting just the fields that I need so that I have only one instance of each record. Then I added subreports for the two other tables which are joined by the CustomerID field in each table. The report LOOKS great; however, I only want to see the data for records in the main table based on criteria in the second table; AND, I want to see the third subreport for those same records even though there is no data in the third table to correspond. Some of the suggestions received previously didn't work. I followed the suggestion for making a query to select the records from the main table based on the second table criteria which would return only the records I wanted and got a query with exactly what I wanted; however, when I made a report from the query, the records repeat based on the number of records in the second table that apply to the record in the main table. Is there any way to send my file for analyzing the codes to Duane? Any suggestions will be greatly appreciated!!!! Regards! "Xfree" wrote: I have a report that contains three sub reports everything is working correctly as far as the output except the one page report repeats its self on a second page with all the same info except the header. Is this a setting I have wrong or a format issue? Let me know if more info is needed for this issue. Thanks |
#9
|
|||
|
|||
Report prints data twice on two different pages
If I am understanding your statement --
My main report is based on a query that is based on the main table only. It is pulling selected fields (name, address & phone number) only. This results in my report listing the customer only once. This is great except that I get all customers and I only want to see the ones that have appts in table 2 that have reasons greater than '1'. The suggestion from another person to make a query with the following code provided the correct results; however, once again when I created a report from this query, the customers appear multiple times based on the number of appts in table 2 that meet the criteria. SELECT ... Customers column list ... FROM Customers AS C INNER JOIN Appointments As A ON C.customer_id = A.customer_id WHERE A.cancelled = True AND A.reason 1 I seem to be going in circles. "Duane Hookom" wrote: Apparently your main report's record source query should be a totals query that outputs only the main tables records. -- Duane Hookom Microsoft Access MVP "Perplexed" wrote: This scenario is pretty close to what I have been struggling with. I posted in both the reports and queries categories and have received several helpful suggestions; however, none resolved my problem. I did learn a lot about sql code though. In the meantime, I have based my report on the main table selecting just the fields that I need so that I have only one instance of each record. Then I added subreports for the two other tables which are joined by the CustomerID field in each table. The report LOOKS great; however, I only want to see the data for records in the main table based on criteria in the second table; AND, I want to see the third subreport for those same records even though there is no data in the third table to correspond. Some of the suggestions received previously didn't work. I followed the suggestion for making a query to select the records from the main table based on the second table criteria which would return only the records I wanted and got a query with exactly what I wanted; however, when I made a report from the query, the records repeat based on the number of records in the second table that apply to the record in the main table. Is there any way to send my file for analyzing the codes to Duane? Any suggestions will be greatly appreciated!!!! Regards! "Xfree" wrote: I have a report that contains three sub reports everything is working correctly as far as the output except the one page report repeats its self on a second page with all the same info except the header. Is this a setting I have wrong or a format issue? Let me know if more info is needed for this issue. Thanks |
#10
|
|||
|
|||
Report prints data twice on two different pages
Yes, base your report on a query like:
SELECT ... Customers column list ... FROM Customers AS C INNER JOIN Appointments As A ON C.customer_id = A.customer_id WHERE A.cancelled = True AND A.reason 1 But as I stated, make this into a totals query and don't include any field in the output from the appointments table. This might be like: SELECT CustomerID, CustomerName, Address, Phone, ... FROM Customers AS C INNER JOIN Appointments As A ON C.customer_id = A.customer_id WHERE A.cancelled = True AND A.reason 1 GROUP BY CustomerID, CustomerName, Address, Phone, ...; -- Duane Hookom Microsoft Access MVP "Perplexed" wrote: If I am understanding your statement -- My main report is based on a query that is based on the main table only. It is pulling selected fields (name, address & phone number) only. This results in my report listing the customer only once. This is great except that I get all customers and I only want to see the ones that have appts in table 2 that have reasons greater than '1'. The suggestion from another person to make a query with the following code provided the correct results; however, once again when I created a report from this query, the customers appear multiple times based on the number of appts in table 2 that meet the criteria. SELECT ... Customers column list ... FROM Customers AS C INNER JOIN Appointments As A ON C.customer_id = A.customer_id WHERE A.cancelled = True AND A.reason 1 I seem to be going in circles. "Duane Hookom" wrote: Apparently your main report's record source query should be a totals query that outputs only the main tables records. -- Duane Hookom Microsoft Access MVP "Perplexed" wrote: This scenario is pretty close to what I have been struggling with. I posted in both the reports and queries categories and have received several helpful suggestions; however, none resolved my problem. I did learn a lot about sql code though. In the meantime, I have based my report on the main table selecting just the fields that I need so that I have only one instance of each record. Then I added subreports for the two other tables which are joined by the CustomerID field in each table. The report LOOKS great; however, I only want to see the data for records in the main table based on criteria in the second table; AND, I want to see the third subreport for those same records even though there is no data in the third table to correspond. Some of the suggestions received previously didn't work. I followed the suggestion for making a query to select the records from the main table based on the second table criteria which would return only the records I wanted and got a query with exactly what I wanted; however, when I made a report from the query, the records repeat based on the number of records in the second table that apply to the record in the main table. Is there any way to send my file for analyzing the codes to Duane? Any suggestions will be greatly appreciated!!!! Regards! "Xfree" wrote: I have a report that contains three sub reports everything is working correctly as far as the output except the one page report repeats its self on a second page with all the same info except the header. Is this a setting I have wrong or a format issue? Let me know if more info is needed for this issue. Thanks |
|
Thread Tools | |
Display Modes | |
|
|