I am using the following as a pass-thru query to Mysql, in order to get total hours spent by each person, doing a specific task.
it comes out looking like
I want to show a nice formatted report, from inside Access 2k3, that is a grid, names along the top, activities along the side, and the time spent inside the grid, with totals either side. Totals included. It would look something like
How can I get this kind of formatting into an Access report, so anyone can generate it and not need to go through a dozen steps to get there?
Code:
SELECT w.designer, sum(w.HoursWorked) as worked, t.work_type as `work type`
from hoursworked as w
left join work_types as t on w.work_id = t.type_id
where w.date >= '2008-06-17'
and w.date <= '2008-07-24'
group by t.work_type, w.designer
Code:
name | hours | activity
------------------------
me | 3.2 | coding
me | 12 | debugging
him | 2.2 | coding
him | 12 | partying
bob | 2 | phone
bob | 4 | partying
I want to show a nice formatted report, from inside Access 2k3, that is a grid, names along the top, activities along the side, and the time spent inside the grid, with totals either side. Totals included. It would look something like
Code:
me | him | bob | total
coding |3.2 | 2.2 | 0 | 5.4
debugging|12 | 0 | 0 | 12
partying |0 | 12 | 4 | 16
phone |0 | 0 | 2 | 2
total |15.2|14.2 | 6 | 35.4
How can I get this kind of formatting into an Access report, so anyone can generate it and not need to go through a dozen steps to get there?