Duplicate Inquiries

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When running an Access report, I'm trying to capture duplicate inquiries
only. We have the field set up to show all ID numbers. I want to be able to
put data in the design field that will only show me ID#'s that are
duplicates. Any suggestions?
 
"How to capture duplicate data w/ a query" <How to capture duplicate data w/
a (e-mail address removed)> wrote in message
When running an Access report, I'm trying to capture duplicate inquiries
only. We have the field set up to show all ID numbers. I want to be able
to
put data in the design field that will only show me ID#'s that are
duplicates. Any suggestions?


Base your report on a query rather than your table.

I the queries tab, click on New and in the dialog choose 'Find duplicates
query'. It will quide you through the creation of the query. Then base
your report on this query.
 
Thanks for the help, but I think I phrased my question incorrectly. I have a
query which gives me data displaying Customer ID number, the sequence, date
opened, etc... I want to be able to run the query so that it only shows me
duplicate ID#'s under the same sequence. Is this possible?
Again, thanks for the help!
 
"How to capture duplicate data w/ a query"
Thanks for the help, but I think I phrased my question incorrectly. I
have a
query which gives me data displaying Customer ID number, the sequence,
date
opened, etc... I want to be able to run the query so that it only shows me
duplicate ID#'s under the same sequence. Is this possible?
Again, thanks for the help!


SELECT YourTable.Sequence, YourTable.CustomerID
FROM YourTable
WHERE (((YourTable.Sequence) In (SELECT [Sequence] FROM [YourTable] As Tmp
GROUP BY [Sequence],[CustomerID] HAVING Count(*)>1 And [CustomerID] =
[YourTable].[CustomerID])))
ORDER BY YourTable.Sequence, YourTable.CustomerID;

Put that in the SQL view of a new query.

If I've still misunderstood, perhaps you could post sample data, and sample
output.
 

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

Back
Top