MarcieFess
Registered User.
- Local time
- Today, 17:40
- Joined
- Oct 25, 2012
- Messages
- 107
My report has a main level grouping on field GRP.
There are 3 separate fields within a Group Rating: Health, Flammability, & Reactivity.
Each of these fields may contain a number 0 through 4.
I have designed a query that compares the 3 fields for any record and creates an entry in the GRP field according to which field (Health, Flam. or React) holds the largest number.
At this point my report will report all records with the largest number being in the Health field, then all the records with the largest number being in the Flammability field, then all the records with the largest number being in the Reactivity field.
Now I need to further sub-divide my report and sub-total on those subdivisions, but I'm not sure how to go about it.
I need the report to subtotal on the largest digit.
In other words, under Health, I need all of the records where the entry under Health is 4 to be grouped together, then the total QOH for all those records will be totaled. Then I need all of the 3's (under Health) to be grouped together, etc.
My problem is, I don't know how to do that. When the GRP changes, so does the field that contains the information to use to determine the sub-group.
Any ideas on how to do this?
Marcie
There are 3 separate fields within a Group Rating: Health, Flammability, & Reactivity.
Each of these fields may contain a number 0 through 4.
I have designed a query that compares the 3 fields for any record and creates an entry in the GRP field according to which field (Health, Flam. or React) holds the largest number.
At this point my report will report all records with the largest number being in the Health field, then all the records with the largest number being in the Flammability field, then all the records with the largest number being in the Reactivity field.
Now I need to further sub-divide my report and sub-total on those subdivisions, but I'm not sure how to go about it.
I need the report to subtotal on the largest digit.
In other words, under Health, I need all of the records where the entry under Health is 4 to be grouped together, then the total QOH for all those records will be totaled. Then I need all of the 3's (under Health) to be grouped together, etc.
My problem is, I don't know how to do that. When the GRP changes, so does the field that contains the information to use to determine the sub-group.
Any ideas on how to do this?
Marcie