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 » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

My report contains multiple copies of each record



 
 
Thread Tools Display Modes
  #1  
Old December 17th, 2009, 07:01 PM posted to microsoft.public.access.reports
mary
external usenet poster
 
Posts: 1,946
Default My report contains multiple copies of each record

I have three tables (parent/guardian, children, otheradults). that are all
related with left joins (i.e. Include ALL records from 'Parent/Guardian' and
only those records from 'Adults' where the joined fields are equal.) by
ContactID (which is the parent/guardian ID) same for children.

I created a query called Family which successfully combined three queries of
each table where I combined the first and last names into one field.

When I create my report, it creates an entry for EACH child rather than
listing the children and related adults under Parent/Guardian as I would
like. Can you tell me what I am doing. --
Positive Direction for Youth & Families, Inc. (www.pdfyinc.com)
  #2  
Old December 17th, 2009, 08:43 PM posted to microsoft.public.access.reports
Duane Hookom
external usenet poster
 
Posts: 7,177
Default My report contains multiple copies of each record

I think you have the Children and the OtherAdults records each related back
to the parent table. If so, the children are not related to a specific other
adult records so you can't create a standard join query since each child will
be paired with each other adult.

I would review the table structure and possibly put all people in the same
table with a field designating the person type. These could be related to a
single household table.

If you can't fix your table structure, you might be able to create a union
query based on the children and other adult tables. Link this union query to
the primary key of the parent table.

If you can't figure this out, come back with table and field names and a few
records from each table with the desired output in the report.

You could also leave the tables the same but use 2 subreports for the
children and other adults.

--
Duane Hookom
Microsoft Access MVP


"Mary" wrote:

I have three tables (parent/guardian, children, otheradults). that are all
related with left joins (i.e. Include ALL records from 'Parent/Guardian' and
only those records from 'Adults' where the joined fields are equal.) by
ContactID (which is the parent/guardian ID) same for children.

I created a query called Family which successfully combined three queries of
each table where I combined the first and last names into one field.

When I create my report, it creates an entry for EACH child rather than
listing the children and related adults under Parent/Guardian as I would
like. Can you tell me what I am doing. --
Positive Direction for Youth & Families, Inc. (www.pdfyinc.com)

  #3  
Old December 17th, 2009, 09:40 PM posted to microsoft.public.access.reports
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default My report contains multiple copies of each record

Post the SQL of your query.
--
Build a little, test a little.


"Mary" wrote:

I have three tables (parent/guardian, children, otheradults). that are all
related with left joins (i.e. Include ALL records from 'Parent/Guardian' and
only those records from 'Adults' where the joined fields are equal.) by
ContactID (which is the parent/guardian ID) same for children.

I created a query called Family which successfully combined three queries of
each table where I combined the first and last names into one field.

When I create my report, it creates an entry for EACH child rather than
listing the children and related adults under Parent/Guardian as I would
like. Can you tell me what I am doing. --
Positive Direction for Youth & Families, Inc. (www.pdfyinc.com)

 




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 02:10 AM.


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