A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

multiple one to many



 
 
Thread Tools Display Modes
  #1  
Old March 15th, 2010, 11:43 PM posted to microsoft.public.access.queries
Papa Jonah
external usenet poster
 
Posts: 42
Default 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  
Old March 15th, 2010, 11:49 PM posted to microsoft.public.access.queries
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default 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  
Old March 16th, 2010, 12:19 PM posted to microsoft.public.access.queries
Krzysztof Naworyta
external usenet poster
 
Posts: 80
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:40 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.