A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

2 subtotals from one report



 
 
Thread Tools Display Modes
  #1  
Old May 10th, 2007, 11:39 PM posted to microsoft.public.access.reports
Randy
external usenet poster
 
Posts: 11
Default 2 subtotals from one report

Access 2000. I have an employee database with employee hours worked, miles
driven, expenses,date etc. I need a report for payroll reporting purposes.
The employee pay period is every two weeks. Sun. of the first week to Sat.
of the next week (14 days). I can very easily create a report showing each
day worked and a Sum of hours, expenses etc. using a between statement in
the query showing the correct date range of the pay period. I have been
asked to create a report that will have a subtotal for the first week, let
say 42.1 hours, and a subtotal for the second week lets say 40.0 hours and a
grand total of both weeks.(82.1) This is so overtime can be properly
accounted for. My table has a date field for the day worked. Any ideas.
Thanks for any help.


  #2  
Old May 11th, 2007, 03:57 PM posted to microsoft.public.access.reports
Pat Hartman \(MVP\)
external usenet poster
 
Posts: 334
Default 2 subtotals from one report

If the detail records go into the report, you can add a grouping option on
date and choose week as the period. You can then add a footer with a sum
for the week. If you have already summed the data in the query, you'll need
a separate report to get to the detail you need.

"Randy" wrote in message
. ..
Access 2000. I have an employee database with employee hours worked,
miles driven, expenses,date etc. I need a report for payroll reporting
purposes. The employee pay period is every two weeks. Sun. of the first
week to Sat. of the next week (14 days). I can very easily create a
report showing each day worked and a Sum of hours, expenses etc. using a
between statement in the query showing the correct date range of the pay
period. I have been asked to create a report that will have a subtotal
for the first week, let say 42.1 hours, and a subtotal for the second week
lets say 40.0 hours and a grand total of both weeks.(82.1) This is so
overtime can be properly accounted for. My table has a date field for the
day worked. Any ideas. Thanks for any help.



  #3  
Old May 12th, 2007, 01:05 AM posted to microsoft.public.access.reports
Randy
external usenet poster
 
Posts: 11
Default 2 subtotals from one report

Thanks Pat, your suggestions is what I needed. It worked except the dates
in my report are no longer sorted in ascending order even though the sort
order is set to ascending order. The underlying query is also set to
ascending oder. The query does sort correctly. Do you have any solutions
to this? Thanks, Randy

"Pat Hartman (MVP)" please no wrote in message
...
If the detail records go into the report, you can add a grouping option on
date and choose week as the period. You can then add a footer with a sum
for the week. If you have already summed the data in the query, you'll
need a separate report to get to the detail you need.

"Randy" wrote in message
. ..
Access 2000. I have an employee database with employee hours worked,
miles driven, expenses,date etc. I need a report for payroll reporting
purposes. The employee pay period is every two weeks. Sun. of the first
week to Sat. of the next week (14 days). I can very easily create a
report showing each day worked and a Sum of hours, expenses etc. using a
between statement in the query showing the correct date range of the pay
period. I have been asked to create a report that will have a subtotal
for the first week, let say 42.1 hours, and a subtotal for the second
week lets say 40.0 hours and a grand total of both weeks.(82.1) This is
so overtime can be properly accounted for. My table has a date field for
the day worked. Any ideas. Thanks for any help.





  #4  
Old May 15th, 2007, 08:20 PM posted to microsoft.public.access.reports
Pat Hartman \(MVP\)
external usenet poster
 
Posts: 334
Default 2 subtotals from one report

Sorting is handled by the report so remove any order by clauses in your
queries. There is no need to sort the recordset twice. Make sure the
sorting and grouping options are properly set.

If your dates are not in "logical" order, you may have formatted them in the
query. Formatting turns a date into a string and it will then be sorted as
strings are by evaluating the characters left to right. This will cause
anomalies like October (month 10) sorting before February (month 2) or if
you formatted to alpha names, April will be the first month of the year.

"Randy" wrote in message
. ..
Thanks Pat, your suggestions is what I needed. It worked except the dates
in my report are no longer sorted in ascending order even though the sort
order is set to ascending order. The underlying query is also set to
ascending oder. The query does sort correctly. Do you have any solutions
to this? Thanks, Randy

"Pat Hartman (MVP)" please no wrote in message
...
If the detail records go into the report, you can add a grouping option
on date and choose week as the period. You can then add a footer with a
sum for the week. If you have already summed the data in the query,
you'll need a separate report to get to the detail you need.

"Randy" wrote in message
. ..
Access 2000. I have an employee database with employee hours worked,
miles driven, expenses,date etc. I need a report for payroll reporting
purposes. The employee pay period is every two weeks. Sun. of the first
week to Sat. of the next week (14 days). I can very easily create a
report showing each day worked and a Sum of hours, expenses etc. using a
between statement in the query showing the correct date range of the pay
period. I have been asked to create a report that will have a subtotal
for the first week, let say 42.1 hours, and a subtotal for the second
week lets say 40.0 hours and a grand total of both weeks.(82.1) This is
so overtime can be properly accounted for. My table has a date field for
the day worked. Any ideas. Thanks for any help.







 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:32 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.