Tasks Not Completed

G

Guest

I have a query of a table that lists all tasks for this
year.

I have another table that records each employee, the task
completed, and the date it was completed on.

I desire to create a query that will return the employee
and the tasks that he has not completed.

Can someone assist me with this? I truly appreciate the
help.
 
G

Guest

I am a little confused about this.

What does Nz with the date do?

I do not see where the tasks from the query (the master
list of tasks) are being compared to the list of tasks
that the employee has already completed from the table.

The master list of tasks (the query: query1) may contain
100 tasks to be completed for the year.

The table (table1) records the employee, the tasks he
completed, and the date he completed it.

The new query, I hope, will compare that table to the
query to determine which tasks the employee still needs
to complete.
 
G

Graham R Seach

SELECT employee, task
FROM tblMyTable
WHERE Nz([taskcompleteddate], 99999) > Date()
ORDER BY employee

Nz is the "Null to Zero" function, which returns the specified value if the
argument is Null. In this case, its looking at the date. If a record has a
Null taskcompleteddate, then the task has not been completed.

I could of course make another assumption, but that too could prove
incorrect. To save a lot of screwing around with the incomplete information
you've provided thus far, why don't you post the structure of ALL tables
involved, and the SQL for the query you mentioned. I will then do your work
for you.

Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia

Microsoft Access 2003 VBA Programmer's Reference
http://www.wiley.com/WileyCDA/WileyTitle/productCd-0764559036.html


I am a little confused about this.

What does Nz with the date do?

I do not see where the tasks from the query (the master
list of tasks) are being compared to the list of tasks
that the employee has already completed from the table.

The master list of tasks (the query: query1) may contain
100 tasks to be completed for the year.

The table (table1) records the employee, the tasks he
completed, and the date he completed it.

The new query, I hope, will compare that table to the
query to determine which tasks the employee still needs
to complete.
-----Original Message-----
SELECT employee, task
FROM tblMyTable
WHERE Nz([taskcompleteddate], 99999) > Date()
ORDER BY employee
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top