S
Scott Viney
Morning All,
With the help of ppl here to create a crosstab query below, and a lot of
messing about I have been able to create a semi functional timesheet for my
hours every week.
But how can I create totals for the hours for each day? IE a sum of the
column of hours for a certain date.
I have in the page footer of my report a text box with the control source as
=Sum([D0]) etc for each day. But I always get an error. Is it possible to
do what Iam trying to do? If so how do I do it?
PARAMETERS [Forms]![frmDate]![cboStartDate] DateTime;
TRANSFORM Sum(tblTimeSheet.BillableHours) AS SumOfBillableHours
SELECT tblProjects.ProjectName, tblProjects.ProjectNumber,
Sum(tblTimeSheet.BillableHours) AS [Total Of BillableHours]
FROM tblProjects INNER JOIN tblTimeSheet ON tblProjects.ProjectID =
tblTimeSheet.ProjectID
WHERE (((tblTimeSheet.BillingDate) Between [Forms]![frmDate]![cboStartDate]
And ([Forms]![frmDate]![cboStartDate]+6)))
GROUP BY tblProjects.ProjectName, tblProjects.ProjectNumber
PIVOT "D" &
DateDiff("D",[Forms]![frmDate]![cboStartDate],tblTimeSheet.BillingDate)
IN ("D0","D1","D2","D3","D4","D5","D6");
Thanks for any help,
Scott
With the help of ppl here to create a crosstab query below, and a lot of
messing about I have been able to create a semi functional timesheet for my
hours every week.
But how can I create totals for the hours for each day? IE a sum of the
column of hours for a certain date.
I have in the page footer of my report a text box with the control source as
=Sum([D0]) etc for each day. But I always get an error. Is it possible to
do what Iam trying to do? If so how do I do it?
PARAMETERS [Forms]![frmDate]![cboStartDate] DateTime;
TRANSFORM Sum(tblTimeSheet.BillableHours) AS SumOfBillableHours
SELECT tblProjects.ProjectName, tblProjects.ProjectNumber,
Sum(tblTimeSheet.BillableHours) AS [Total Of BillableHours]
FROM tblProjects INNER JOIN tblTimeSheet ON tblProjects.ProjectID =
tblTimeSheet.ProjectID
WHERE (((tblTimeSheet.BillingDate) Between [Forms]![frmDate]![cboStartDate]
And ([Forms]![frmDate]![cboStartDate]+6)))
GROUP BY tblProjects.ProjectName, tblProjects.ProjectNumber
PIVOT "D" &
DateDiff("D",[Forms]![frmDate]![cboStartDate],tblTimeSheet.BillingDate)
IN ("D0","D1","D2","D3","D4","D5","D6");
Thanks for any help,
Scott