C
Casa
Hello everyone;
Here is a simple problem. I want to find duplicates in a particular column
of a query (this query is joining together two tables). So I've designed a
duplicates query to do the task. I want to create a table alias (for the
first query, since it's name is long). I write the code to do this, and when
I run the duplicates query, Access says that it cannot find the input query.
I'm certain that I've messed up something simple. Can you tell me what it
is? Here is my code:
SELECT A.Certificate, A.Certificate2, A.DDH
FROM qry_Select_Assays_for_Excel as A
WHERE (((A.Certificate) In (SELECT [Certificate]
FROM [A] As Tmp GROUP BY [Certificate] HAVING Count(*)>1)))
ORDER BY A.Certificate;
Here is a simple problem. I want to find duplicates in a particular column
of a query (this query is joining together two tables). So I've designed a
duplicates query to do the task. I want to create a table alias (for the
first query, since it's name is long). I write the code to do this, and when
I run the duplicates query, Access says that it cannot find the input query.
I'm certain that I've messed up something simple. Can you tell me what it
is? Here is my code:
SELECT A.Certificate, A.Certificate2, A.DDH
FROM qry_Select_Assays_for_Excel as A
WHERE (((A.Certificate) In (SELECT [Certificate]
FROM [A] As Tmp GROUP BY [Certificate] HAVING Count(*)>1)))
ORDER BY A.Certificate;