Duplicates Query question

G

Guest

I have a table with the following fields:

ID# Fax# Contact Name

And I've created Query to find Duplicates from the Fax# field:

SELECT MyTable.ID#, MyTable.Fax#, MyTable.Contact_Name
FROM MyTable
WHERE (((MyTable.Fax#) In (SELECT [Fax#] FROM [MyTable] As Tmp GROUP BY
[Fax#] HAVING Count(*)>1 )) AND ((MyTable.Fax#)<>"") AND
((MyTable.Contact_Name) Is Not Null))
ORDER BY MyTable.Fax#;

Is it possible to then select all instances of the duplicate Fax# where
Contact_Name is not duplicated?

Many thanks,
 
G

Guest

"PaulM" ,

Just a guess, and I hope a MVP will correct me if I am wrong, but wouldn't
you group by ID# and Group by Contact Name? Try using the query design grid
and use the grouping option for both columns. See what your results come up.
Only have the two data fields /columns from your source table.
Good Luck,
Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top