SELECT Distinct a.RefNumber, a.PartNo, b.RefNumber, b.PartNo
FROM dbo_CrfPartDetails AS a INNER JOIN dbo_CrfPartDetails AS b ON a.RefNumber = b.RefNumber
WHERE (((InStr([a].[PartNo],[Forms]![zz]![aa]))=1) AND ((InStr([b].[PartNo],[Forms]![zz]![bb]))=1))
ORDER BY a.RefNumber;
Lists 541. There were obviously several cases of actual data where there were two or more records having the same RefNumber for the same set of PartNos's. Making it distinct got rid of the duplications.