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  

Master detail report



 
 
Thread Tools Display Modes
  #1  
Old April 8th, 2010, 12:39 AM posted to microsoft.public.access.reports
Lydia
external usenet poster
 
Posts: 94
Default Master detail report

I am trying to figure out how to show all rows from a master table even if
the detail table does not have records for some rows.
  #2  
Old April 8th, 2010, 04:44 AM posted to microsoft.public.access.reports
Dennis
external usenet poster
 
Posts: 1,222
Default Master detail report

Lydia,

You left out quite a bit of detail, but I'm guessing that you are trying to
build either a query or report from a master and detail table. When you join
the two tables, you want do a Left Join where you include all records from
the master table and only those records from the detail table where the
joined fields are equal".

You need to build a query and join the two tables. The SQL should look like:

SELECT tblClass.ClassNo, tblLookUpD.LongDesc
FROM tblClass LEFT JOIN tblLookUpD ON tblClass.ClassName = tblLookUpD.CodeKey;


Good luck,


Dennis
  #3  
Old April 8th, 2010, 04:49 AM posted to microsoft.public.access.reports
Duane Hookom[_4_]
external usenet poster
 
Posts: 316
Default Master detail report

This is basically a query question. Use a LEFT or RIGHT JOIN that includes
all the records from the Master table.

--
Duane Hookom
MS Access MVP


"Lydia" wrote in message
...
I am trying to figure out how to show all rows from a master table even if
the detail table does not have records for some rows.


 




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