Hi Steen,
The following is just another way
(once demonstrated by Michel for situation
to find who has not taken a course)
SELECT Prod.[Name]
FROM Prod INNER JOIN Part
ON Prod.id_part = Part.id_prod
GROUP BY Prod.[Name]
HAVING
(((Min([Volyme] Between 400 And 700))=0));
Basically you have a "test condition", in this case
for each group of [Name],
is "[Volyme] Between 400 And 700"?
If that condition is never met over the group,
the min of that true/false condition will be 0 (false)
and that group will be returned by the query.
If that condition is ever met within the group,
the min of that true/false condition will be -1 (true)
and that group will not be returned by the query.
Pretty clever.
Just another way....
BTW, "Name" is a reserved word in Access
and you should probably change the field name
to something else (unless this was just a simple
example of your structure).
Good luck,
Gary Walter
Steen said:
Hi.
I got to 2 tables:
Prod Part
Name id_part id_prod Volyme
John 1 1 200
Nils 2 1 300
Ola 3 3 100
Fredrik 4 3 600
3 900
4 500
I need a query that give the result of who doesnt have a volyme that is
between 400 and 700
John
Nils
Thanks
/Steen