I have two tables, tblOwners and tblHomes, linked in a one-to-many relationship. tblHomes has a field HomeType which is a numeric code for the type of home. Any owner can have none, one or several of any type of home.
I need to get a list of owners who have homes of a particluar type. When I apply the following SQL (shorn of all the superfluous fields) I get lots of duplicated owners, i.e. a line for every home with the Hometype.
SELECT tblOwners.OwnerRecordName, tblHomes.HomeName, tblHomes.HomeType
FROM tblOwners INNER JOIN tblHomes ON tblOwners.OwnerID = tblHomes.HomeOwnerID
WHERE (((tblHomes.HomeType)=10));
I can’t figure out how to refine this query so that each owner with a home of the appropriate hometype is listed only once with no duplicates. The result will be passed to a mail merge generated from a selection criteria form (there will be other criteria) so the answer must be in SQL.