For some reason I cant get this simple report to work, am I missing something?
I have simplified the info for easy reading. I execute a query on a table to get the following datasheet.
Table (datasheet)
Field Data Type
JobNumber Number, Long Interger
Department Number, Long Interger
Time Date/Time, Short Time
All I want to do is subtotal Time by Job and by Dept.
Sample Data
JobNumber Department Time (Hrs)
2005 3 9:00
2005 3 4:15
2005 4 2:45
2005 4 12:00
2006 1 8:00
2006 1 8:00
2006 2 8:00
2006 2 0:15
Grouping
Job Number, Sort Order: Ascending
Department, Sort Order: Ascending
Report Sections
1. I have a JobNumber Header with 1 text box, (JobNumber)
2. In the Detail I have 2 text boxes Department, and Time, (Visible Property for detail section is No)
3. I have a Department Footer with Department and Time
4. I have a JobNumber Footer with JobNumber and Time
Question:
The subtotals and totals I get on both group levels are wrong, Does the time field in the footers need to be something other than just the field (how do I get it to sum), I do have the Running Sum set to "Over Group" on both group fields. Is there any special way to do calculations (sum) on date/time data types? thanks
I have simplified the info for easy reading. I execute a query on a table to get the following datasheet.
Table (datasheet)
Field Data Type
JobNumber Number, Long Interger
Department Number, Long Interger
Time Date/Time, Short Time
All I want to do is subtotal Time by Job and by Dept.
Sample Data
JobNumber Department Time (Hrs)
2005 3 9:00
2005 3 4:15
2005 4 2:45
2005 4 12:00
2006 1 8:00
2006 1 8:00
2006 2 8:00
2006 2 0:15
Grouping
Job Number, Sort Order: Ascending
Department, Sort Order: Ascending
Report Sections
1. I have a JobNumber Header with 1 text box, (JobNumber)
2. In the Detail I have 2 text boxes Department, and Time, (Visible Property for detail section is No)
3. I have a Department Footer with Department and Time
4. I have a JobNumber Footer with JobNumber and Time
Question:
The subtotals and totals I get on both group levels are wrong, Does the time field in the footers need to be something other than just the field (how do I get it to sum), I do have the Running Sum set to "Over Group" on both group fields. Is there any special way to do calculations (sum) on date/time data types? thanks