473,386 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 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 2017
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

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

Similar topics

4
by: Frank Jona | last post by:
Intellisense with C# and a multi-file assembly is not working. With VB.NET it is working. Is there a fix availible? We're using VisualStudio 2003 Regards Frank
5
by: Mark Harrison | last post by:
I'm looking for feedback from anybody who has used pg in a multi-threaded program, particularly one in which several threads each open a database connection. It's documented to work in that...
2
by: NiponW | last post by:
Hi, I have SQL SERVER 2000 SP4 Enterprise , Windows 2003 Enterprise on Xeon 4 Processors (now with multi-threading CPU) and I have questions which seem weirds to me (used to have the same...
4
by: Web_PDE_Eric | last post by:
I don't know where to go, or what to buy, so plz re-direct me if I'm in the wrong place. I want to do high performance integration of partial differential eqns in n dimensions (n=0,1,2,3..etc) I...
4
by: DirkMS | last post by:
Hi, Declare Function CreateMailslot Lib "kernel32.dll" _ Alias "CreateMailslotA" ( _ ByVal lpName As String, _ ByVal nMaxMessageSize As Long, _ ByVal lReadTimeout As Long, _ ByVal...
20
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site...
1
by: mknoll217 | last post by:
I am recieving this error from my code: The multi-part identifier "PAR.UniqueID" could not be bound. The multi-part identifier "Salary.UniqueID" could not be bound. The multi-part identifier...
0
by: Ling | last post by:
I am using boost.python to wrap C++ function which includes directmusic libraries to simply play the midi, but lots of linkage errors "error LNK2001: unresolved external symbol". I wonder if it is...
2
by: BruceWho | last post by:
I downloaded boost1.35.0 and built it with following command: bjam --toolset=msvc-7.1 --variant=release --threading=multi -- link=shared --with-system stage and it failed to compile, error...
4
by: =?Utf-8?B?SGVucmlrIFNjaG1pZA==?= | last post by:
Hi, consider the attached code. Serializing the multi-dimensional array takes about 36s vs. 0.36s for the single-dimensional array. Initializing the multi-dimensional array takes about 4s...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.