Solved

display the duplicate record on an acces form

Posted on 2013-11-20
8
498 Views
Last Modified: 2013-11-25
I have an access 2007 form that is based on a query  dealer_trade_expo
SELECT dbo_dealer_trade_expo.accountnumber, dbo_dealer_trade_expo.dealername, dbo_dealer_trade_expo.businessname, dbo_dealer_trade_expo.address, dbo_dealer_trade_expo.address2, dbo_dealer_trade_expo.city, dbo_dealer_trade_expo.state, dbo_dealer_trade_expo.zip_code, dbo_dealer_trade_expo.phone, dbo_dealer_trade_expo.fax, dbo_dealer_trade_expo.email, dbo_dealer_trade_expo.salesrep, dbo_dealer_trade_expo.attending_day1, dbo_dealer_trade_expo.attending_day2, dbo_dealer_trade_expo.special_event1, dbo_dealer_trade_expo.attending_day3, dbo_dealer_trade_expo.attending_1, dbo_dealer_trade_expo.attending_2, dbo_dealer_trade_expo.attending_3, dbo_dealer_trade_expo.attending_4, dbo_dealer_trade_expo.notes, dbo_dealer_trade_expo.Date
FROM dbo_dealer_trade_expo
ORDER BY dbo_dealer_trade_expo.Date DESC;

Open in new window

the data is entered in to the table by both an access form and from a web form on our web site, I have a check on the access form to prevent duplicates from being entered but I don't control the web form and duplicates are being entered, I would like to display the account number of the the duplicate records on the form or a message box that displays the duplicates so they can be deleted, but not sure how to do it.
0
Comment
Question by:skull52
  • 4
  • 4
8 Comments
 
LVL 30

Expert Comment

by:hnasr
ID: 39663355
Try to use the Find duplicates query wizard.
0
 

Author Comment

by:skull52
ID: 39663449
I have done that, finding the dups is not the issues I want it to display the duplicate records as I said either on the form or in a message box.

> I would like to display the account number of the the duplicate records on the form or a message box that displays the duplicates so they can be deleted, >
0
 
LVL 30

Expert Comment

by:hnasr
ID: 39663661
What about using the form setting its record source as the duplicate records query?
0
 

Author Comment

by:skull52
ID: 39663703
Then the form would only show the duplicate records
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 30

Expert Comment

by:hnasr
ID: 39663801
" I want it to display the duplicate records"

You may display the duplicate records for maintenance "....  so they can be deleted, >".

After that you change the record source.
0
 

Accepted Solution

by:
skull52 earned 0 total points
ID: 39664191
I did it with a subform not elegant but it works
0
 
LVL 30

Expert Comment

by:hnasr
ID: 39665069
"I did it with a subform not elegant but it works "

But this comment is not an answer to accept. Explain how did you solve the problem without making use of the ideas presented so far.
0
 

Author Closing Comment

by:skull52
ID: 39674139
Nobody came up with a viable solution
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

PL/SQL can be a very powerful tool for working directly with database tables. Being able to loop will allow you to perform more complex operations, but can be a little tricky to write correctly. This article will provide examples of basic loops alon…
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now