Ok I am looking for a way to find duplicat phone numbers in a Table....
This SQL was generated By Access and works to find the full number (area code etc):
SELECT [Customer Information Table].Phone, [Customer Information Table].[Customer ID], [Customer Information Table].[Customer Name]
FROM [Customer Information Table]
WHERE ((([Customer Information Table].Phone) In (SELECT [Phone] FROM [Customer Information Table] As Tmp GROUP BY [Phone] HAVING Count(*)>1 )))
ORDER BY [Customer Information Table].Phone;
I have been playing with it to try and pull up duplicated of the last 7 numbers( no area code, trying to find duplicate numbers because of area code changes)
I tried usint Right(Phone,7) in various spots but then i get an aggregate function error. Any Ideas?
Bill
This SQL was generated By Access and works to find the full number (area code etc):
SELECT [Customer Information Table].Phone, [Customer Information Table].[Customer ID], [Customer Information Table].[Customer Name]
FROM [Customer Information Table]
WHERE ((([Customer Information Table].Phone) In (SELECT [Phone] FROM [Customer Information Table] As Tmp GROUP BY [Phone] HAVING Count(*)>1 )))
ORDER BY [Customer Information Table].Phone;
I have been playing with it to try and pull up duplicated of the last 7 numbers( no area code, trying to find duplicate numbers because of area code changes)
I tried usint Right(Phone,7) in various spots but then i get an aggregate function error. Any Ideas?
Bill