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  

Report does not contain all the records I expect



 
 
Thread Tools Display Modes
  #1  
Old December 17th, 2009, 03:56 PM posted to microsoft.public.access.reports
mary
external usenet poster
 
Posts: 1,946
Default Report does not contain all the records I expect

I have three tables (Contacts, Children, Other Adults). They are all related
by the ContactID. Not all contacts have children, some have more than one
adult in the family, not all have other adults. I wanted a report that
included all adults and all children for each contact. I created a query of
Contacts and their children and tried to insert a subreport of the other
adults. It worked but only contained half of the contacts in my original
table. Can you tell me what the problem might be?
  #2  
Old December 17th, 2009, 04:20 PM posted to microsoft.public.access.reports
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Report does not contain all the records I expect

You need to LEFT JOIN Contacts to Children and Other Adults tables.
If you need more assistance the post the query or report SQL.
--
Build a little, test a little.


"Mary" wrote:

I have three tables (Contacts, Children, Other Adults). They are all related
by the ContactID. Not all contacts have children, some have more than one
adult in the family, not all have other adults. I wanted a report that
included all adults and all children for each contact. I created a query of
Contacts and their children and tried to insert a subreport of the other
adults. It worked but only contained half of the contacts in my original
table. Can you tell me what the problem might be?

 




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 12:03 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.