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