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
|
|||
|
|||
multiple one to many
I have a database with multiple tables that are populated with a form with
subforms. Basically I have Table A with a record ID field that has a one to many relationship with two other tables (Table B and Table C). I am trying to run a query (for a report) that will show the record ID (and other fields) from Table A with each of the many corresponding fields from the other two tables. But I don't want the info from Table A showing up repeatedly in my report - just once. How can this be done? TIA Papa J |
#2
|
|||
|
|||
multiple one to many
First do the query, and don't worry about 'repeating' data.
Then create your report based on the query. In report design view, use the Grouping & Sorting to organize your report by those repeating fields. This way, you'll only show the value once per group. An alternate approach, depending on your data, is to include all fields, but set the properties of those that repeat to hide any duplicates. Good luck! Regards Jeff Boyce Microsoft Access MVP -- Disclaimer: This author may have received products and services mentioned in this post. Mention and/or description of a product or service herein does not constitute endorsement thereof. Any code or pseudocode included in this post is offered "as is", with no guarantee as to suitability. You can thank the FTC of the USA for making this disclaimer possible/necessary. "Papa Jonah" wrote in message ... I have a database with multiple tables that are populated with a form with subforms. Basically I have Table A with a record ID field that has a one to many relationship with two other tables (Table B and Table C). I am trying to run a query (for a report) that will show the record ID (and other fields) from Table A with each of the many corresponding fields from the other two tables. But I don't want the info from Table A showing up repeatedly in my report - just once. How can this be done? TIA Papa J |
#3
|
|||
|
|||
multiple one to many
Use subreports with seperated querys
-- KN Jeff Boyce wrote: | First do the query, and don't worry about 'repeating' data. | | Then create your report based on the query. In report design view, | use the Grouping & Sorting to organize your report by those repeating | fields. This way, you'll only show the value once per group. | | An alternate approach, depending on your data, is to include all | fields, but set the properties of those that repeat to hide any | duplicates. | | Good luck! | | Regards | | Jeff Boyce | Microsoft Access MVP | | | "Papa Jonah" wrote in message | ... || I have a database with multiple tables that are populated with a || form with subforms. || || Basically I have Table A with a record ID field that has a one to || many relationship with two other tables (Table B and Table C). || || I am trying to run a query (for a report) that will show the record || ID (and || other fields) from Table A with each of the many corresponding || fields from the other two tables. But I don't want the info from || Table A showing up repeatedly in my report - just once. || How can this be done? || || TIA || Papa J |
Thread Tools | |
Display Modes | |
|
|