Results 1 to 2 of 2
  1. #1
    mattzkn is offline Novice
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    3

    Deleting the wrong duplicate

    OK, here is my situation (simplified)

    I have two tables. 'Clients' and 'New Clients'

    Table 'Clients' just has one field 'Client Name' and this table should never be edited

    Table 'New Clients' has multiple fields which includes 'Client Name' and new data is added to it regularly.

    I created a query with a simple inner join to show duplicates between the two tables

    Sometimes this may be 20 or 30 names depending on how regularly it is checked. I want to be able to select all the names in the query and delete them, but i only want them deleted from table 'New Clients' and for the names to remain in 'Clients'. However, the exact opposite is inexplicably happening and it is only deleting the names from the table 'Client' and leaving them in 'New Clients'

    Does anybody know how to solve this?

    P.S....even better would be if it stopped me / told me that the name already existed in 'Clients' when someone originally enters it in the field 'Client Name' in the table 'New Client'



    Thanks!

    Matt

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    You could use DAO to loop through a recordset of table NewClients to search for and delete duplicate records. The same methodology could be applied to search Clients and avoid a duplicate being added in the first place.

    The hard part is determining if a record is a duplicate or not. Names get misspelled, individuals can share names with others, nicknames can be used. In the end, it may be best to employ a search form technique to get user feedback. I don't like to depend on Users for analyzing data, but this may be an instance where it is necessary.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Deleting Duplicate Records
    By EHittner in forum Queries
    Replies: 9
    Last Post: 10-30-2013, 02:56 PM
  2. Replies: 3
    Last Post: 03-01-2013, 12:41 PM
  3. Merging and deleting duplicate records
    By Rider in forum Access
    Replies: 1
    Last Post: 01-06-2012, 01:44 PM
  4. Deleting Folders
    By Madmax in forum Access
    Replies: 1
    Last Post: 10-05-2011, 11:02 AM
  5. Replies: 11
    Last Post: 12-14-2010, 01:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums