A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Help with a Monthly Summary Report



 
 
Thread Tools Display Modes
  #1  
Old December 11th, 2009, 07:13 AM posted to microsoft.public.access.queries,microsoft.public.access.reports
Dennis
external usenet poster
 
Posts: 1,222
Default Help with a Monthly Summary Report

Hi,

Since this question involves both a query summary and a report, I tried to
cross post to microsoft.public.access.queries.

I am working of a volunteer reporting form for a charity. They have to
submit a monthly summary report to the government as required by their grant
funding requirements. We submit a month in arrears. For example, we submit
January’s activity report at the beginning of March. By the time we run the
report, all of the activity has been recorded.

Below is a sample of the report:

Program | Volunteer Ct | Total Hours | Total Miles | Donation
| Total
Blood Donor
Hospital
Education
Welfare
Funerals
Comm Serv
Grand Total

For simplicity, I have not listed all of the program categories. There are
a total of 19 categories (and 19 lines) on the report. Since this is a
government form, I must use their form without any changes.

I have a project table which has one row per project / charity event. It is
keyed by project number. The Project Table contains:

ProjNo
ProjName
ProgType (Blood, Hospital, Education, Welfare, Funerals, Comm Serv)

I have a project volunteer activity table which has one record per project,
per volunteer, per date. The key to this table is Project Det No. and it is
an automatically assigned number. This table contains the following fields:

ProjDetNo (automatically assigned)
ProjNo (foreign key to Project table)
Date worked
Hours worked
Miles driven
Amount donated

To create this report, I know I have to:
- Left join the Project Volunteer Activity table to the Project table
- Select only those activity records that have a work date for the specified
month.
- Sort the activity records by program and summarize hours worked, miles
driven, and amount donated by program.

Here are my issues:

1. I’m unsure how to get query / SQL to summaries the multiple activity
records into a single row per program.

2. Assuming I can create a summary row, how do I associate the activity
program with a specific line on the report? I know I can setup a foreign key
so that I can assign an activity program to a specific line on the report.
But my what I don’t know how to do is get the Access report to print the
first record on the 5th line, the second record to print on the 8th line, the
third record to print on the 9th line, the fourth record to print on the 11th
line, and then print the totals on the total line.


I would appreciate any help I can get on this issue.


Thanks,



Dennis

  #2  
Old December 11th, 2009, 01:47 PM posted to microsoft.public.access.queries,microsoft.public.access.reports
Jeff Boyce
external usenet poster
 
Posts: 1,555
Default Help with a Monthly Summary Report

Dennis

Have you looked into using a Cross-tab query/report?

--

Regards

Jeff Boyce
Microsoft Access MVP

Disclaimer: This author may have received products and services mentioned in
this post. Mention and/or description of a product or service herein does
not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

"Dennis" wrote in message
...
Hi,

Since this question involves both a query summary and a report, I tried to
cross post to microsoft.public.access.queries.

I am working of a volunteer reporting form for a charity. They have to
submit a monthly summary report to the government as required by their
grant
funding requirements. We submit a month in arrears. For example, we
submit
January's activity report at the beginning of March. By the time we run
the
report, all of the activity has been recorded.

Below is a sample of the report:

Program | Volunteer Ct | Total Hours | Total Miles |
Donation
| Total
Blood Donor
Hospital
Education
Welfare
Funerals
Comm Serv
Grand Total

For simplicity, I have not listed all of the program categories. There
are
a total of 19 categories (and 19 lines) on the report. Since this is a
government form, I must use their form without any changes.

I have a project table which has one row per project / charity event. It
is
keyed by project number. The Project Table contains:

ProjNo
ProjName
ProgType (Blood, Hospital, Education, Welfare, Funerals, Comm Serv)

I have a project volunteer activity table which has one record per
project,
per volunteer, per date. The key to this table is Project Det No. and it
is
an automatically assigned number. This table contains the following
fields:

ProjDetNo (automatically assigned)
ProjNo (foreign key to Project table)
Date worked
Hours worked
Miles driven
Amount donated

To create this report, I know I have to:
- Left join the Project Volunteer Activity table to the Project table
- Select only those activity records that have a work date for the
specified
month.
- Sort the activity records by program and summarize hours worked, miles
driven, and amount donated by program.

Here are my issues:

1. I'm unsure how to get query / SQL to summaries the multiple activity
records into a single row per program.

2. Assuming I can create a summary row, how do I associate the activity
program with a specific line on the report? I know I can setup a foreign
key
so that I can assign an activity program to a specific line on the report.
But my what I don't know how to do is get the Access report to print the
first record on the 5th line, the second record to print on the 8th line,
the
third record to print on the 9th line, the fourth record to print on the
11th
line, and then print the totals on the total line.


I would appreciate any help I can get on this issue.


Thanks,



Dennis



  #3  
Old December 11th, 2009, 02:53 PM posted to microsoft.public.access.queries,microsoft.public.access.reports
Dennis
external usenet poster
 
Posts: 1,222
Default Help with a Monthly Summary Report

Jeff,

No, but I will now. Thanks for the lead.


--
Dennis


  #4  
Old December 11th, 2009, 03:49 PM posted to microsoft.public.access.queries,microsoft.public.access.reports
Duane Hookom
external usenet poster
 
Posts: 7,177
Default Help with a Monthly Summary Report

You should be able to get most of this with a simple totals query of your
project table and activity table.

Group By Program and sum the Hours Worked, Miles Driven, and Amount Donated.
Set the criteria under the Date Worked to your specific range.

I don't know how you can get a Volunteer Ct since there doesn't seem to be a
volunteer field in any table.

Your report design will have multiple sections that determine the position
on the page. Play with it.
--
Duane Hookom
Microsoft Access MVP


"Dennis" wrote:

Hi,

Since this question involves both a query summary and a report, I tried to
cross post to microsoft.public.access.queries.

I am working of a volunteer reporting form for a charity. They have to
submit a monthly summary report to the government as required by their grant
funding requirements. We submit a month in arrears. For example, we submit
January’s activity report at the beginning of March. By the time we run the
report, all of the activity has been recorded.

Below is a sample of the report:

Program | Volunteer Ct | Total Hours | Total Miles | Donation
| Total
Blood Donor
Hospital
Education
Welfare
Funerals
Comm Serv
Grand Total

For simplicity, I have not listed all of the program categories. There are
a total of 19 categories (and 19 lines) on the report. Since this is a
government form, I must use their form without any changes.

I have a project table which has one row per project / charity event. It is
keyed by project number. The Project Table contains:

ProjNo
ProjName
ProgType (Blood, Hospital, Education, Welfare, Funerals, Comm Serv)

I have a project volunteer activity table which has one record per project,
per volunteer, per date. The key to this table is Project Det No. and it is
an automatically assigned number. This table contains the following fields:

ProjDetNo (automatically assigned)
ProjNo (foreign key to Project table)
Date worked
Hours worked
Miles driven
Amount donated

To create this report, I know I have to:
- Left join the Project Volunteer Activity table to the Project table
- Select only those activity records that have a work date for the specified
month.
- Sort the activity records by program and summarize hours worked, miles
driven, and amount donated by program.

Here are my issues:

1. I’m unsure how to get query / SQL to summaries the multiple activity
records into a single row per program.

2. Assuming I can create a summary row, how do I associate the activity
program with a specific line on the report? I know I can setup a foreign key
so that I can assign an activity program to a specific line on the report.
But my what I don’t know how to do is get the Access report to print the
first record on the 5th line, the second record to print on the 8th line, the
third record to print on the 9th line, the fourth record to print on the 11th
line, and then print the totals on the total line.


I would appreciate any help I can get on this issue.


Thanks,



Dennis

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:27 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.