Hello,
When I make the following query call using CRecordset::Open, the function
never returns. I am trying to find duplicate records in the database. When I
run the query in MS Access, the results are returned immediately. All other
queries using CRecordset::Open in the application work fine. Has anyone
experienced this problem or am I doing something incorrectly?
sprintf(sqlQuery,"SELECT DISTINCTROW [Artist ID] FROM [WCAZ_MasterList]
WHERE ((([Artist ID]) In
(SELECT [Artist ID] FROM [WCAZ_MasterList] As
Tmp GROUP BY [Artist ID],[Song Title]
HAVING Count(*)>1 And [Song Title] =
[WCAZ_MasterList].[Song Title])))");
if(CRecordset::IsOpen())
CRecordset::Close();
CRecordset::Open(AFX_DB_USE_DEFAULT_TYPE,sqlQuery,CRecordset::none);
Thanks in advance,
Jim Casazza
CAZ Media
http://www.cazmedia.com/mmi - the coolest music on the net