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 / New Users / April 2005

Tip: Looking for answers? Try searching our database.

Need help with report based on multiple queries

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Aditya Lele - 08 Apr 2005 18:02 GMT
Hi!All

I am trying to create a report which tracks faculty progress.So the kind of
data I am reporting at a departmental level is the yearly funding received,
yearly grants generated etc. I am getting this data from a query and using
the sum options within the report to get an aggregate for each department.
Key fact here is that one faculty might have generated 10 grants and so at
a detailed level there would be 10 instances identifying this faculty
within a particular department.

I also need to report no. of faculty hired by each department. My problem
is because of the fact stated above,
using count(facultydentifier) sums over the multiple instances of the
faculty. So for the faculty generating 10 grants, the report tells me that
10 people were hired, whereas actually 1 was hired.

I read on the web on how to create reports based on multpiple queries. When
I try to do that I get the error "You have chosen fields from record
sources which the wizard can't connect. You may have chosen fields from a
table and query based on that table. If so try choosing fields only from
the query or only from the table". Indeed my second query uses one of the
table used in the first one. But I don't know how to get around it.
I tried doing the count function in the first query, but that is not right,
since all other records are at a detailed level while the count is at an
aggregate level.

Would highly appreciate any pointers and help.
Thanks.
David Seeto - 12 Apr 2005 04:58 GMT
Hi Aditya,

It would help if you posted the structure of the table or query that you're
reporting from - but it sounds to me like you can use a query based on a
query.

Assuming your table is "Grants" with columns:
* Department
* FacultyID
* GrantAmount

Your TotalGrants query must be Department, Sum (GrantAmount) - you've
already found that Department, FacultyID, Count (FacultyID) doesn't give
you the faculty count, so try this:

Create FacultyGrants as Department, FacultyID, Sum (GrantAmount).

Then use this Query to get Departent, Count (FacultyID).
 
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.