T
tdailey11
Guest
Please, help!! I know this is probably a very simple query, but, for the life of me, I cannot figure it out.
I have a table of registration histories, tblRegHistory, and from that table I need to extract people who have attended a certain conference every year for the past 4 years. (We want to recognize those individuals who have attended every year.) When I run the query, I'm getting everybody who has attended any one of those years even though they may have only attended one or two years or if I run the query below then I get "zero" results. How do I extract only those individuals that have attended every year?
SELECT DISTINCT tblRegHistory.[Person Id], tblRegHistory.[Meeting Code], tblRegHistory.[Name Prefix], tblRegHistory.[Last Name]
FROM tblRegHistory
WHERE (((tblRegHistory.[Meeting Code]) Like "wood99" And (tblRegHistory.[Meeting Code]) Like "Wood00" And (tblRegHistory.[Meeting Code]) Like "Wood*01" And (tblRegHistory.[Meeting Code]) Like "Wood*02"))
ORDER BY tblRegHistory.[Person Id];
Thanks!!
I have a table of registration histories, tblRegHistory, and from that table I need to extract people who have attended a certain conference every year for the past 4 years. (We want to recognize those individuals who have attended every year.) When I run the query, I'm getting everybody who has attended any one of those years even though they may have only attended one or two years or if I run the query below then I get "zero" results. How do I extract only those individuals that have attended every year?
SELECT DISTINCT tblRegHistory.[Person Id], tblRegHistory.[Meeting Code], tblRegHistory.[Name Prefix], tblRegHistory.[Last Name]
FROM tblRegHistory
WHERE (((tblRegHistory.[Meeting Code]) Like "wood99" And (tblRegHistory.[Meeting Code]) Like "Wood00" And (tblRegHistory.[Meeting Code]) Like "Wood*01" And (tblRegHistory.[Meeting Code]) Like "Wood*02"))
ORDER BY tblRegHistory.[Person Id];
Thanks!!