Multiple Records on One Report

G

Guest

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
 
G

Guest

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
 
G

Guest

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
 
M

Marshall Barton

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top