Hello Guys,
I have a form containing several checkboxes of subjects studied. when a user ticks a subject(s) on the click of a button i would like to run a query that selects students with ONLY the selected subjects.
what i have so far is :
SELECT Student.StudentID, Student.Name
FROM Student
WHERE (([forms]![search]![history_A].[value]=Yes) AND ([forms]![search]![maths_A].[value]=Yes) AND ([forms]![search]![science_A].[value]=Yes));
What this is doing is giving me students with ATLEAST one of these courses whereas i want students who have all 3 subjects TOGETHER
Any ideas of enforcing this in the criteria so it only gives me records with 3 ticks only instead of atleast 1?
Thank you in advance
I have a form containing several checkboxes of subjects studied. when a user ticks a subject(s) on the click of a button i would like to run a query that selects students with ONLY the selected subjects.
what i have so far is :
SELECT Student.StudentID, Student.Name
FROM Student
WHERE (([forms]![search]![history_A].[value]=Yes) AND ([forms]![search]![maths_A].[value]=Yes) AND ([forms]![search]![science_A].[value]=Yes));
What this is doing is giving me students with ATLEAST one of these courses whereas i want students who have all 3 subjects TOGETHER
Any ideas of enforcing this in the criteria so it only gives me records with 3 ticks only instead of atleast 1?
Thank you in advance