p-rat,
When showing a sample table, please make it's width less
than 80 chars. Email Wraps anything over that
If you go too wide, your data will look like what's in
your revious post, and it's really difficult to work with that.
You could have dropped the Ticket,TruckHours, and
Shop Hours, as they are not germain to the issue you indicated.
It appears as though Joe and Sam each had a
Max DrvHours of 12 hrs, which will give Dallas a total
of 24. Correct?
See my * and ~ calculations below. That should give
you the sum of the Max DriverHours by City.
DALLAS,TX (City Header)
--------------------------
Driver Header
---------------------------
Drvr TTicket THours DrvHours ShpHours (Detail)
joe 12345 3.0 8.0 0.0
joe 23456 6.0 7.0 0.0
joe 34567 3.0 12.0 0.0
-----------------------------------------
joe 12.0 *12.0 0.0 (DrvrFooter)
------------------------------------------
sam 98765 9.0 12.0 0.0
sam 16523 9.0 6.0 0.0
-----------------------------------------
sam 9.0 *12.0 0.0 (DrvrFooter)
-----------------------------------------
DALLAS 21.0 ~ 24.0 0.0 (City Footer)
-----------------------------------------
GRAND total , etc. (Report Footer)
* Name = [DrvMaxHrs] =Max(DrvHrs)
~Name = [CityDrvHrs] =Sum(DrvMaxHrs)
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html
"Find a job that you love... and you'll never work a day in your life."
I need the 'driverhours' which show up on detail rows to show as MAX
in the driver group footer. I hide this field on the detail row. I
need the driver hours to sum correctly on the location group footer
and other group footers including grand total. I can't get this to
work. Thanks again for any help.
columns: driver truckticket truckhours
driverhours shophours
DALLAS,TX
detail rows joe 12345 3.0
12.0 0.0
joe 23456 6.0
12.0 0.0
joe 34567 3.0
12.0 0.0
______________________________________________________________
joe 12.0
12.0 0.0
sam 98765 9.0
12.0 0.0
________________________________________________________________
sam 9.0
12.0 3.0
DALLAS total 21.0
24.0 3.0
GRAND total , etc.