Selecting tasks with highest weeknumber

Frantic

New member
Local time
Today, 13:59
Joined
Sep 11, 2002
Messages
5
High,

have been searching on this simple problem for a whole day without finding a solution ...

I 've got a query which extracts "task_description" and "weeknumber" out of two different tables. Unfortunately, some tasks which are not completed one week, are re-inserted the next week, so I got this list showing the same tasks with different weeknumbers.
Now, I want my query only to show the tasks and their latest weeknumber.

Can someone tell me how ?

Thx !
 
Just create a totals query on the table with the week number in it. Insert all the fields you will need. All the fields will be "Group by" except the week number field - change that to "Max".

Now use this query to join with your other table.
 
Thx for replying, but I'm affraid you're going a little too fast ...

As an Access rookie (more experienced in My-SQL) the way these query's are build seems a bit strang to me.
 
Fantastic ! I solved the problem thanks to your help !
 

Users who are viewing this thread

Back
Top Bottom