G
Guest
I posted this problem several days ago, and tried the suggestions but still
can't get it to work. Here was the original posting:
I have two access 2003 tables. One is Client and contains name, index#, and
age... The other is HistoryOfWhoClientDated and contains index# of client and
index# of someone they dated. I want to list every client and give a list of
at least 4 people they have NOT dated before ( from HistoryOfWhoClientDated)
and within a specified age group ( i am actually going to have compare 6 more
fields - but if i can figure this part, i can figure the rest). I know i can
use topvalue somehow but i don't know how to go through every client, match 4
that weren't dated before (as recorded in the history table). Any thoughts
on how to accomplish this?
Of the two suggestins, I got closest to working was this query, but because
i am not knowledgable in sql i am having a problem.
SELECT Client.ID AS dater, DatedHistory.id AS datee
FROM Client AS client, DatedHistory AS datedhistory
WHERE (Client.ID <>[datedhistory].[id])
And Client.ID Not In (
select datedhistory.id
from datedhistory
where(datedhistory.datedid=datedhistory.id)
)
ORDER BY Client.ID;
Can you help? It is still producing those that hav ealready been dated.
thanks!
can't get it to work. Here was the original posting:
I have two access 2003 tables. One is Client and contains name, index#, and
age... The other is HistoryOfWhoClientDated and contains index# of client and
index# of someone they dated. I want to list every client and give a list of
at least 4 people they have NOT dated before ( from HistoryOfWhoClientDated)
and within a specified age group ( i am actually going to have compare 6 more
fields - but if i can figure this part, i can figure the rest). I know i can
use topvalue somehow but i don't know how to go through every client, match 4
that weren't dated before (as recorded in the history table). Any thoughts
on how to accomplish this?
Of the two suggestins, I got closest to working was this query, but because
i am not knowledgable in sql i am having a problem.
SELECT Client.ID AS dater, DatedHistory.id AS datee
FROM Client AS client, DatedHistory AS datedhistory
WHERE (Client.ID <>[datedhistory].[id])
And Client.ID Not In (
select datedhistory.id
from datedhistory
where(datedhistory.datedid=datedhistory.id)
)
ORDER BY Client.ID;
Can you help? It is still producing those that hav ealready been dated.
thanks!