472,096 Members | 1,285 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,096 software developers and data experts.

Desparately need help with a multi-query report

I need some advise on how to best create an Access 2002 report from multiple "total" queries, each which result in 3- 5 values that I need displayed on my report. Most of the queries do simple counts based on 3 different tables. For instance, I need to count the number of new clients enrolled in a program for a given month or year-to-date grouped by 4 different referral sources (based on the start date for the client). Then I need to count the number of terminations or graduations grouped by referral source and criteria being exit date falling anytime during the current month. There are about 9 columns of "counts" all based on client data in the top half of the report. Since the criteria changes based on the column of the report, I have 9 different queries to get the counts I need.

What is the best approach for getting these query results into a multi-column report? Do I have to do a subreport for each column or should I create a new table that holds the results each month?

This is my first attempt at using Access for a more complicated database. The bottom of the report is multi column and also requires multiple queries to get counts on activity hours, instructional hours, services received, etc.

Any insight would be greatly appreciated!!!
Mimi
Oct 21 '07 #1
1 1941
nico5038
3,080 Expert 2GB
I need some advise on how to best create an Access 2002 report from multiple "total" queries, each which result in 3- 5 values that I need displayed on my report. Most of the queries do simple counts based on 3 different tables. For instance, I need to count the number of new clients enrolled in a program for a given month or year-to-date grouped by 4 different referral sources (based on the start date for the client). Then I need to count the number of terminations or graduations grouped by referral source and criteria being exit date falling anytime during the current month. There are about 9 columns of "counts" all based on client data in the top half of the report. Since the criteria changes based on the column of the report, I have 9 different queries to get the counts I need.

What is the best approach for getting these query results into a multi-column report? Do I have to do a subreport for each column or should I create a new table that holds the results each month?

This is my first attempt at using Access for a more complicated database. The bottom of the report is multi column and also requires multiple queries to get counts on activity hours, instructional hours, services received, etc.

Any insight would be greatly appreciated!!!
Mimi
In general I use a GroupBy query and a Format() statement to do the counts you need. For a monthly count use the format statement like:
Expand|Select|Wrap|Line Numbers
  1. select format([your date field],"yyyymm") as YearMonth, ...
  2.  
This will give the count per month and for the YTD you can re-use the field and set the "Running total" property.

The "4 different referral sources" look like a quarter to me, but you should be able to add the field to the YearMonth to get a grouping on both fields.

Getting the idea ?

Nic;o)
Oct 21 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Frank Jona | last post: by
5 posts views Thread by Mark Harrison | last post: by
reply views Thread by Ling | last post: by
2 posts views Thread by BruceWho | last post: by
4 posts views Thread by =?Utf-8?B?SGVucmlrIFNjaG1pZA==?= | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.