weekly employee hours report by days please help!!!!!!!!!!!
First I have not programmed in access for a long time, so please forgive me for my rather simple problem. I have to give my boss a daily hours report for the week. Ie:
Employee name dept mon tues wed thurs fri sat sun total
john doe eng 8 8 8 8 8 0 0 40
I have went at this several ways and just can not get the right answer. I can get the totals for each day but the query i have does them as individual records ie:
Employee name dept mon tues wed thurs fri sat sun total
john doe eng 8 0 0 0 0 0 0 8
john doe eng 0 8 0 0 0 0 0 8
I would appreciate any help on this matter.
SELECT [needing new idea3].clock, [needing new idea3].Lastname, employee.Departmentid, [needing new idea3].day1, [needing new idea3].day2, [needing new idea3].day3, [needing new idea3].day4, [needing new idea3].day5, [needing new idea3].day6, [needing new idea3].d1, [needing new idea3].d2, [needing new idea3].d3, [needing new idea3].d4, [needing new idea3].d5, [needing new idea3].d6
FROM employee INNER JOIN [needing new idea3] ON employee.clock=[needing new idea3].clock
WHERE newtot>0;
Brandon
First I have not programmed in access for a long time, so please forgive me for my rather simple problem. I have to give my boss a daily hours report for the week. Ie:
Employee name dept mon tues wed thurs fri sat sun total
john doe eng 8 8 8 8 8 0 0 40
I have went at this several ways and just can not get the right answer. I can get the totals for each day but the query i have does them as individual records ie:
Employee name dept mon tues wed thurs fri sat sun total
john doe eng 8 0 0 0 0 0 0 8
john doe eng 0 8 0 0 0 0 0 8
I would appreciate any help on this matter.
SELECT [needing new idea3].clock, [needing new idea3].Lastname, employee.Departmentid, [needing new idea3].day1, [needing new idea3].day2, [needing new idea3].day3, [needing new idea3].day4, [needing new idea3].day5, [needing new idea3].day6, [needing new idea3].d1, [needing new idea3].d2, [needing new idea3].d3, [needing new idea3].d4, [needing new idea3].d5, [needing new idea3].d6
FROM employee INNER JOIN [needing new idea3] ON employee.clock=[needing new idea3].clock
WHERE newtot>0;
Brandon
Last edited: