Results 1 to 2 of 2
  1. #1
    Rhubie is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2012
    Posts
    85

    Append Query - one field distinct

    I have a child table - that I want to pull all of the distinct MasterKey field data, but the PrintableDescription field is not unique - is there a way to do this? I am new to the append query.

    INSERT INTO [Master Key] ( MasterKey, PrintableDescription )
    SELECT [Master Children].MasterKey, [Master Children].PrintableDescription


    FROM [Master Children];

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Are you saying that the SELECT part of your query returns duplicate records and you want to get rid of the duplicates and just return unique records?
    If so, just add the word "DISTINCT" after "SELECT", i.e.
    Code:
    INSERT INTO [Master Key] ( MasterKey, PrintableDescription )
    SELECT DISTINCT [Master Children].MasterKey, [Master Children].PrintableDescription
    FROM [Master Children];

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

Similar Threads

  1. Append query with update same field
    By mladen273 in forum Queries
    Replies: 1
    Last Post: 01-15-2013, 01:56 PM
  2. Replies: 3
    Last Post: 11-19-2012, 12:27 PM
  3. Spaces Stripped from Append Query Field
    By alawless in forum Queries
    Replies: 11
    Last Post: 08-08-2011, 10:45 PM
  4. Replies: 3
    Last Post: 12-28-2010, 10:43 PM
  5. Append Query - Multi-Valued Field
    By catat in forum Queries
    Replies: 0
    Last Post: 05-11-2010, 01:52 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