Is it possible to retrieve the count of duplicate records (produced from the query below) ? I want to see if there are any duplicate records, if so, then show them on a form. If no duplicate records, then display a report with the single record.
In (SELECT [First_Name] FROM [Location_Totals] As Tmp
GROUP BY [First_Name],[Middle_Name],[Last_Name],
[Attending_Location] HAVING Count(*)>1
And [Middle_Name] = [Location_Totals].[Middle_Name]
And [Last_Name] = [Location_Totals].[Last_Name]
And [Attending_Location] = [Location_Totals].[Attending_Location])
In (SELECT [First_Name] FROM [Location_Totals] As Tmp
GROUP BY [First_Name],[Middle_Name],[Last_Name],
[Attending_Location] HAVING Count(*)>1
And [Middle_Name] = [Location_Totals].[Middle_Name]
And [Last_Name] = [Location_Totals].[Last_Name]
And [Attending_Location] = [Location_Totals].[Attending_Location])