Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...It is good to know that there are groups such as this willing to share knowledge in this money driven economy..."

Geography

Where in the world do Tek-Tips members come from?

Access 2010 group by report want to have > hours header

DougP (MIS)
19 Jun 12 11:52
Is there a way to have a group of hours greater than 50.
I have records for each day for each employee. I have a group by report that shows each name and the total hours on for that week.
Is there a way to have another group so that anyone over 50 hours will show up together somehow?
Like so
Fred Smith 44
Jamey Jones 34
Harbey karnes 40
------ over 50 -----
Cary Samules 55
James Kinter 51

DougP

Lilliabeth (TechnicalUser)
19 Jun 12 13:36
Display the Group and Sort pane. Click Add a Group. At the bottom of the field list will be "expression". Choose expression and type Hours>50. The result will be two groups, one where Hours>50 is True, and one where it is False.

--Lilliabeth

DougP (MIS)
19 Jun 12 13:48
I don't know what is "bottom of field list"

this is Access 2010.

DougP

Lilliabeth (TechnicalUser)
19 Jun 12 14:00
When you click 'Add a Group', Access 2010 offers you a list of fields so you can choose a field to group by.

--Lilliabeth

dhookom (Programmer)
19 Jun 12 21:51
Are the numbers you want to group by in the detail section or a group footer? I'm not sure how any of this could work since your total hours aren't in numeric order.

Duane
Hook'D on Access
MS Access MVP

DougP (MIS)
20 Jun 12 11:31
dhookom, I put it in the header section, since I am grouping on the name which the persons lastname,firstname is the field [name] has and also a Sum of the hours Sum([F12]).
So the sort is by name when it shows on the report.
Jones, Jamey 34
Karnes, Herbey 40
Smith, Fred 44
I am typing in names this is not real data.
so just ignore the out of order, I was trying to show I wanted 50 in it's own section.

DougP

dhookom (Programmer)
20 Jun 12 12:15
Are you saying your sample data only displays values calculated in a header section, isn't real data, and isn't in the order it should be in?

Quote (DougP)

Fred Smith 44
Jamey Jones 34
Harbey karnes 40
------ over 50 -----
Cary Samules 55
James Kinter 51
If the records are sorted by "Name", then how do you expect to sort by a total in a header? Or is this what you want?

If I understand correctly, you want to first sort by a calculated total hours that isn't in your report's record source and then sort by name. If this is the case, you should create a total in the report's record source. You can then use this value to sort/group in your report.

Duane
Hook'D on Access
MS Access MVP

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close