G
Guest
I have a duplicates query ported over from Access 2000 that is showing an
extra record. For testing purposes, I have a table with 2 duplicates and I
am getting them, but I am also getting an extra row populated with only the
two fields I am qualifying on.
Query:
SELECT LoclDMUActions.ActionWord, LoclDMUActions.ActionDocNumber,
LoclDMUActions.ActionBatchId
FROM LoclDMUActions
WHERE (((LoclDMUActions.ActionWord) In (SELECT [ActionWord] FROM
[LoclDMUActions] As Tmp GROUP BY [ActionWord],[ActionDocNumber] HAVING
Count(*)>1 And [ActionDocNumber] = [LoclDMUActions].[ActionDocNumber])))
ORDER BY LoclDMUActions.ActionWord, LoclDMUActions.ActionDocNumber;
Any ideas?
extra record. For testing purposes, I have a table with 2 duplicates and I
am getting them, but I am also getting an extra row populated with only the
two fields I am qualifying on.
Query:
SELECT LoclDMUActions.ActionWord, LoclDMUActions.ActionDocNumber,
LoclDMUActions.ActionBatchId
FROM LoclDMUActions
WHERE (((LoclDMUActions.ActionWord) In (SELECT [ActionWord] FROM
[LoclDMUActions] As Tmp GROUP BY [ActionWord],[ActionDocNumber] HAVING
Count(*)>1 And [ActionDocNumber] = [LoclDMUActions].[ActionDocNumber])))
ORDER BY LoclDMUActions.ActionWord, LoclDMUActions.ActionDocNumber;
Any ideas?