Summary Report

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible to have a report that draws from multiple queries or tables?
For example, I have one query which counts shipments, one query which counts
units returned, and one query which counts damaged goods. I'd like a report
which shows the results of all three queries which are totally unrelated.

Thanks,
 
You will ned to use subreports and not define any parent child relationships
to be able to have all of these on one report if there is no relationship.
 
SELECT 'Shipment' AS Code, Count(*) AS CNT FROM SHIPMENTS
UNION ALL
SELECT 'Returned' ,COUNT(*) FROM UnitsReturned
UNION ALL
SELECT 'Damaged', Count(*) FROM DAMAGED

Would do it

Pieter
 
SELECT 'Shipment' AS Code, Count(*) AS CNT FROM SHIPMENTS
UNION ALL
SELECT 'Returned' ,COUNT(*) FROM UnitsReturned
UNION ALL
SELECT 'Damaged', Count(*) FROM DAMAGED

Would do it

Pieter

schasteen said:
You will ned to use subreports and not define any parent child
relationships
to be able to have all of these on one report if there is no relationship.



--
 

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

Back
Top