multiple one to many

P

Papa Jonah

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
 
J

Jeff Boyce

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.
 
K

Krzysztof Naworyta

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
|
|
| || 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top