Steve Schapel
steve at datamanagementsolutions.biz
Sun Jan 18 03:43:15 CST 2015
Kostas Try it like this?... SELECT IDfilms, Count(IDpeople) AS PeoplePerFilm FROM YourTable GROUP BY IDfilms HAVING Count(IDpeople)=2 Or Count(IDpeople)=3 Regards Steve -----Original Message----- From: Kostas Konstantinidis Sent: Sunday, January 18, 2015 10:22 PM To: Access Developers discussion and problem solving Subject: [AccessD] How to search two records in the same field of a table Hi all, I have a table with: IDfilms and IDpeople What I need to do is to find after searching all the IDfilms in which two or three IDpeople worked together I tried a union query but it doesn't work thank's a lot /kostas -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com