K
Kenny Holden
Hi List,
Im a first time poster, and new to access. But I have used sql in the past.
I have a table called tasks listing all tasks (complete or not). What I am
trying todo is to provide a moth eg. september 2004 and then the query would
list for each day of that given month. How many tasks were opened as new
tasks on that day, and also how many tasks were closed on that day. And
finally how many tasks remained opened on this day (this is tasks that were
opened before this date, and closed after this date).
Here is a cut-down version of the table:
Tasks
------
task_id
task_opendate
task_closeddate
I am hoping the resultant query would look something like:
Day num_opened num_closed num_pending
1 23 15 22
2 5 20 24
etc...
My problem is I can do bits and bats of the query separately, but not the
whole thing, and I just keep going round in circles. Specifically I am
unable to list in a column each day of the month (I believe this is the key
to it, but I may be wrong). Incidentally, I dont know if it makes a
difference but the query will be used to make an access report.
Finally, sorry for rambling, but can anyone please recommend any books
specfic to ms-access and complex queries.
Many Thanks, Kenny
Im a first time poster, and new to access. But I have used sql in the past.
I have a table called tasks listing all tasks (complete or not). What I am
trying todo is to provide a moth eg. september 2004 and then the query would
list for each day of that given month. How many tasks were opened as new
tasks on that day, and also how many tasks were closed on that day. And
finally how many tasks remained opened on this day (this is tasks that were
opened before this date, and closed after this date).
Here is a cut-down version of the table:
Tasks
------
task_id
task_opendate
task_closeddate
I am hoping the resultant query would look something like:
Day num_opened num_closed num_pending
1 23 15 22
2 5 20 24
etc...
My problem is I can do bits and bats of the query separately, but not the
whole thing, and I just keep going round in circles. Specifically I am
unable to list in a column each day of the month (I believe this is the key
to it, but I may be wrong). Incidentally, I dont know if it makes a
difference but the query will be used to make an access report.
Finally, sorry for rambling, but can anyone please recommend any books
specfic to ms-access and complex queries.
Many Thanks, Kenny