Fred Webb
asked on
display the duplicate record on an acces form
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;
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.
Try to use the Find duplicates query wizard.
ASKER
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, >
> 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, >
What about using the form setting its record source as the duplicate records query?
ASKER
Then the form would only show the duplicate records
" 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.
You may display the duplicate records for maintenance ".... so they can be deleted, >".
After that you change the record source.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
"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.
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.
ASKER
Nobody came up with a viable solution