Hello all,
I have this SQL query which will create a table for the duplicates field records and one more condition:
NOw, I want to run this code thru VBA and the code should ask the user names of the tables Table2 and ADM200508_122704.
I've just started using VBA in Access so I really don't know anything about the coding in it. If someone can please help me with this I would be grateful.
I have this SQL query which will create a table for the duplicates field records and one more condition:
Code:
INSERT INTO Table2
SELECT ADM200508_122704.*
FROM ADM200508_122704
WHERE (((ADM200508_122704.[ID Number]) In (SELECT [ID Number] FROM [ADM200508_122704] As Tmp GROUP BY [ID Number] HAVING Count(*)>1 )) AND ((ADM200508_122704.[Application Number])<>DMax("[Application Number]","ADM200508_122704")));
I've just started using VBA in Access so I really don't know anything about the coding in it. If someone can please help me with this I would be grateful.