Access report features question

jvargas

New Member
Joined
Nov 7, 2003
Messages
8
The database I am running this report on is not very nicely done, but i have to work with it. I have a list of records that include multiple records of a given person. All the records will be grouped by the persons name and then by a sum of an 'hours' column. At the end of each persons record, i want to sum all of the different 'hours' values. How can i do this and still use the query that shows each record i need?

Hope this isn't too confusing. :p
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
look up "Grouping Records in Reports" in help you should find what you need for this.
peter
 
Upvote 0
I think this better explains what I am looking for....

I am building a report that prints a pages for records of a single person (ie, each page only contains records for one person). Records consist of a location column with only 3 possible values. I would like my page footer to display a total of a numeric colum based on the location value. How can i keep a count of the records for each page/person?


The page looks like this:

Name - SSN
-------------------------------------
job#...hours.....location
-------------------------------------
135......22........A
130......14........A
335.......6.........B
-------------------------------------

The bottom should look like this

Total Hrs Location A: 36
Total Hrs Location B: 6
Total Hrs Location C: 0

Thanks in advance for any help!
 
Upvote 0
try going to

View >> Sorting and Grouping

Group on *Name* or *SSN*

Yes for Group Header and Footer

Paste this into your Group Footer with appropriate labels
=Sum(IIf([location]="A",[SumOfHours],0))
=Sum(IIf([location]="B",[SumOfHours],0))
=Sum(IIf([location]="C",[SumOfHours],0))

Under your Footer properties, select Force New Page - After Section
 
Upvote 0
great, thatnks... it worked out. I was trying that code but it wasnt working because I was in the page footer rather than the sectional footer.

THanks!!! (y)
 
Upvote 0

Forum statistics

Threads
1,221,574
Messages
6,160,602
Members
451,657
Latest member
Ang24

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top