Special Grouping & Subtotal

G

Guest

I have a personalized training report for employees that I need to finish up
and I can really use any help I can get. It's been a frustrating morning. The
report is a master/detail format where I have the empoyee personal info at
the top and a list of their classes below. I need to split the classes into
years and subtotal them. The year is based on their employment anniversary
date. I have already created a query which pulls the current two years
training history. I just need thereport to split it acordingly. For example,
if an employee was hired on 03/22/1993, his anniversary date is 03/22/2006.
My query already pulls the training from 03/22/2004 up through his
anniversary date, but I need the report to group the training from
03/22/2004 through 03/22/2005, subtital that, then do the same for 03/22/2005
through 03/22/2006 and subtotal that. Am I asking too much from MS Access?
Thx in advance
 
M

Marshall Barton

Richard said:
I have a personalized training report for employees that I need to finish up
and I can really use any help I can get. It's been a frustrating morning. The
report is a master/detail format where I have the empoyee personal info at
the top and a list of their classes below. I need to split the classes into
years and subtotal them. The year is based on their employment anniversary
date. I have already created a query which pulls the current two years
training history. I just need thereport to split it acordingly. For example,
if an employee was hired on 03/22/1993, his anniversary date is 03/22/2006.
My query already pulls the training from 03/22/2004 up through his
anniversary date, but I need the report to group the training from
03/22/2004 through 03/22/2005, subtital that, then do the same for 03/22/2005
through 03/22/2006 and subtotal that. Am I asking too much from MS Access?


Add a calculated field to the report's record source query
to calculate the "age" of the person using the expression:

YearsHere: DateDiff("yyyy", [Aniiversary], Date()) +
(Format(Date(), "mmdd") < Format([Aniiversary], "mmdd"))

Then use Sorting and Goruping (View menu) in the report's
design view to create a group with header section on the YIS
field. Add a text box bound to the YIS field in the group
header section.
 

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

Similar Threads

criteria applies to a range of dates. 3
Grouping Data 1
Date Equation on Report 3
SUMIF 3
Subtotal Records 2
Find then highlight in yellow 6
How to sum in report? 7
AND array 2

Top