Results 1 to 3 of 3
  1. #1
    bip54 is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Apr 2017
    Posts
    11

    access 2016 Add request without duplicates

    Hello, After several months my little and very simple database of Cookbooks on Access 2016 has made good progress; for the use that I have, I have only one point to solve (I think):




    I have a table "tNew_Books" without index with two fields Short text namely "Titles" and "Subject"; I created a simple addition query "rAdd_New_Books" which copies the contents of these two fields into a table "tBooks" also without index and which contains the same two fields "Titles" and "Subject". I do not know how to prevent the query from copying Titles from the "New Books" table that are already in the "Books" table; I have to rely on the strings that make up the titles to differentiate them because I do not want to add an index, it would be too complicated for me because I should take other things in my database ... I would prefer to add a condition in the query Add


    Thank you for your help .

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    make a query Q1, that shows all title/subjs in tBooks,
    then make Q2, bring in tNew and Q1 into the query. You want to say,'show me the books in tNew that are NOT in Q1'
    join the title/subj fields
    dbl-click the join lines and set an OUTER join. Set ALL books in Q1, some in tNew
    bring down tNew.Title, tNew.Subj, tBooks.Title, tBooks.Subj
    set criteria, set tBooks.Title is null

    this says show me all tNew books not in tBooks.
    make an append query ,Q3. BRing in Q2, add the missing items to tBooks.

  3. #3
    bip54 is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Apr 2017
    Posts
    11
    Wow, quick and efficient !
    Many thanks

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

Similar Threads

  1. Replies: 3
    Last Post: 10-19-2017, 11:08 AM
  2. Automating Outlook 2016 from Access 2016
    By jcc285 in forum Programming
    Replies: 10
    Last Post: 09-30-2017, 01:53 PM
  3. Access Request (research)
    By Zoso26 in forum Access
    Replies: 1
    Last Post: 02-25-2016, 05:10 PM
  4. Replies: 16
    Last Post: 05-04-2014, 09:19 AM
  5. Replies: 0
    Last Post: 03-23-2009, 01:21 AM

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