Hey all!
If in my table i have exactly 2 same rows then i would like to delete one of them. Luckily, if the rganum is the same for any 2 rows then the rest of the fields are exactly the same..
Here is the query i have so far..
This gives me an error saying "An action query cannot be used as a row source"..
Not sure what this means and how to fix the code.
Thanks in advance for any suggestion.
If in my table i have exactly 2 same rows then i would like to delete one of them. Luckily, if the rganum is the same for any 2 rows then the rest of the fields are exactly the same..
Here is the query i have so far..
Code:
DELETE *
FROM TempTable AS t1
WHERE t1.rganum = (SELECT t2.rganum FROM [STEP 3: PickALLMatchingRows] as t2 WHERE COUNT (t2.rganum)>1 GROUP BY t2.rganum);
This gives me an error saying "An action query cannot be used as a row source"..
Not sure what this means and how to fix the code.
Thanks in advance for any suggestion.