Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Reports / Printing / November 2006

Tip: Looking for answers? Try searching our database.

Multiple Records on One Report

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Curtis Stevens - 03 Nov 2006 15:47 GMT
Is this possible?

2 tables, one main table "customers" with main customer info.  Second table
"products" that lists the products the customer ordered.  There can be more
than one record in products for each customer record and has a relationship
together.

How do you display all the product records for that particular customer on
ONE report or same page?

Don't know if this is easy to explain, but thanks!

Curtis
Curtis Stevens - 03 Nov 2006 16:21 GMT
I see you can do this with a report & then a sub report?

Here is my delima.

3 Tables.  Tables A, B & C.

A has relations to B, B has relations to C.

I want a report to display A's records, but on the same report, have those A
records list its C records.

I take it you link the subreport with master/child, but how?

Curtis

> Is this possible?
>
[quoted text clipped - 9 lines]
>
> Curtis
JohnB - 03 Nov 2006 16:48 GMT
Hi. I think this way would work.

First create a report based on tableB, which has a subreport based on
tableC, with the master/child link set using the relationship between tableB
and tableC. In this report you don't actually need to have any text boxes
showing tableb fields if you don't want them. Now think of this whole
report/subreport as a subreport. Create a new report based on tableA and use
the first report/subreport as a subreport on it, this time using the
master/child link relationship between tableA and tableB.

I hope that is clear.

Cheers, JohnB

> I see you can do this with a report & then a sub report?
>
[quoted text clipped - 24 lines]
> >
> > Curtis
Marshall Barton - 03 Nov 2006 18:19 GMT
The linking is done through the subreport control's Link
Master/Child Fields properties.

Before you go too far with this, note that the key to any
report is to create a query that selects the right data for
the report.  What you say you want can be done without using
subreports.  First create a query that appropriately Joins
the three table and selects the needed fields from the
tables.  Then use the report's Sorting and Grouping (View
menu) to create header and footer sections for the customer
data and put the order info in the detail section.
Signature

Marsh
MVP [MS Access]

>I see you can do this with a report & then a sub report?
>
[quoted text clipped - 18 lines]
>> How do you display all the product records for that particular customer on
>> ONE report or same page?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.