Groundrush
Registered User.
- Local time
- Today, 15:52
- Joined
- Apr 14, 2002
- Messages
- 1,376
Is this possible?
I have a parameter qry that returns data within a start and end date, which is handy if I am looking for a particular week which will consist of 39 hours
the problem is when I use it to run a monthly report I cant get it to break it down to week ending dates
please see attached for example
this is the SQL I am using
SELECT dbo_F_TASK_TIME.TT_ID, dbo_F_TASK_TIME.TT_NAME, dbo_F_TASK_TIME.TT_LAB_DESC, Sum(dbo_F_TASK_TIME.TT_NORM_TIME) AS SumOfTT_NORM_TIME, dbo_F_TASK_TIME.TT_STARTED
FROM dbo_F_TASK_TIME INNER JOIN dbo_F_TASKS ON dbo_F_TASK_TIME.TT_FKEY_TA_SEQ = dbo_F_TASKS.TA_SEQ
WHERE (((dbo_F_TASK_TIME.TT_STARTED)>=[Start Date] And (dbo_F_TASK_TIME.TT_STARTED)<[end date plus 1 day]))
GROUP BY dbo_F_TASK_TIME.TT_ID, dbo_F_TASK_TIME.TT_NAME, dbo_F_TASK_TIME.TT_LAB_DESC, dbo_F_TASK_TIME.TT_STARTED
HAVING (((Sum(dbo_F_TASK_TIME.TT_NORM_TIME))<>0))
ORDER BY dbo_F_TASK_TIME.TT_NAME;
Thanks
I have a parameter qry that returns data within a start and end date, which is handy if I am looking for a particular week which will consist of 39 hours
the problem is when I use it to run a monthly report I cant get it to break it down to week ending dates
please see attached for example
this is the SQL I am using
SELECT dbo_F_TASK_TIME.TT_ID, dbo_F_TASK_TIME.TT_NAME, dbo_F_TASK_TIME.TT_LAB_DESC, Sum(dbo_F_TASK_TIME.TT_NORM_TIME) AS SumOfTT_NORM_TIME, dbo_F_TASK_TIME.TT_STARTED
FROM dbo_F_TASK_TIME INNER JOIN dbo_F_TASKS ON dbo_F_TASK_TIME.TT_FKEY_TA_SEQ = dbo_F_TASKS.TA_SEQ
WHERE (((dbo_F_TASK_TIME.TT_STARTED)>=[Start Date] And (dbo_F_TASK_TIME.TT_STARTED)<[end date plus 1 day]))
GROUP BY dbo_F_TASK_TIME.TT_ID, dbo_F_TASK_TIME.TT_NAME, dbo_F_TASK_TIME.TT_LAB_DESC, dbo_F_TASK_TIME.TT_STARTED
HAVING (((Sum(dbo_F_TASK_TIME.TT_NORM_TIME))<>0))
ORDER BY dbo_F_TASK_TIME.TT_NAME;
Thanks