Using Access 2003, we have a main table of peopledump, which has unique records, each with an idn in field idn.
However each idn may be in several Lists, such as sales, service, other, etc. numbered 1 2 3 4 5 etc
In order to see which lists each person idn is in I have created a query linking [peopledump].idn to datasources_people.person, and then datasources_people.datasource to datasource.idn
This works however where the people idn is in several list datasource I get duplicate people idn's
So what I want to do is to say something like If there is a duplicate or several duplicates of people.idn, then pick The one with the Lowest number in datasource. Thus if people idn has 4 records (queries,not data) with a datasources of 1,2,3, and 4 give me ONLY the query record with datasource 1
If in datasource 4, and 5 then give me only the record that matches 4 etc
How can I do this, or can it be done ?
However each idn may be in several Lists, such as sales, service, other, etc. numbered 1 2 3 4 5 etc
In order to see which lists each person idn is in I have created a query linking [peopledump].idn to datasources_people.person, and then datasources_people.datasource to datasource.idn
This works however where the people idn is in several list datasource I get duplicate people idn's
So what I want to do is to say something like If there is a duplicate or several duplicates of people.idn, then pick The one with the Lowest number in datasource. Thus if people idn has 4 records (queries,not data) with a datasources of 1,2,3, and 4 give me ONLY the query record with datasource 1
If in datasource 4, and 5 then give me only the record that matches 4 etc
How can I do this, or can it be done ?