jonathangr
Programmer
Hello
I am getting wrong results with my query so I hope you can help me check what the problem is. What I want to do is to count the number of times a field (NIP) is in field EF1 or in field EF2.
Here's my query:
Thanks in advance for your help
I am getting wrong results with my query so I hope you can help me check what the problem is. What I want to do is to count the number of times a field (NIP) is in field EF1 or in field EF2.
Here's my query:
Code:
SELECT table1.NIP, Count([table2]![EF1] And [table2]![EF2]) AS CountNIP
FROM table1, table2 WHERE (((table2.EF1)=[table1].[NIP])) OR (((table2.EF2)=[table1].[NIP]))
GROUP BY table1.NIP;
Thanks in advance for your help