Results 1 to 5 of 5
  1. #1
    frankmanl is offline Novice
    Windows 11 Office 365
    Join Date
    Jan 2023
    Posts
    9

    remove/hide double values from query result

    My query finds records from a set of 3 connected tables (see image below).


    The first table Adressen is the main table containing names, addresses etc. that I need, depending on values in the third table.
    Some records from Adressen show up several times in the query result, because they have several references in the last table.
    (I set the query's settings to Unique values: YES but that does not help, because of these values in the last table ...)

    How can I arrange that the query only displays unique records from Adressen?
    Table Adressen has a primary key which I might use, but I don't understand how I could do that.

    Frank

    Click image for larger version. 

Name:	table-structure.jpeg 
Views:	18 
Size:	23.0 KB 
ID:	50120

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Build a report and use Sorting & Grouping features.

    Or maybe use http://allenbrowne.com/func-concat.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    xps35's Avatar
    xps35 is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jun 2022
    Location
    Schiedam, NL
    Posts
    232
    Do you need to show the values from the third table? If not, just use them as criterion but do not show them.
    Groeten,

    Peter

  4. #4
    frankmanl is offline Novice
    Windows 11 Office 365
    Join Date
    Jan 2023
    Posts
    9
    Really, is it that simple?
    Thanks a lot, this solves my problem.
    Frank

  5. #5
    Join Date
    Apr 2017
    Posts
    1,681
    Another solution will be something like (on fly)
    Code:
    SELECT adr.* FROM Addresser adr WHERE adr.AddressenID
    IN((SELECT am.AddressenID FRoM [jointtbl_Addressen_Med...] am INNER JOIN [tblMedewerkers_Betro...] mb ON mb.BetrokkenID = am.ref_BetrokkenID WHERE am.Betrokenesoort = ?))

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

Similar Threads

  1. Replies: 1
    Last Post: 02-20-2018, 03:26 AM
  2. Open Query result want to hide
    By rmayur in forum Queries
    Replies: 12
    Last Post: 02-03-2015, 12:06 AM
  3. Replies: 2
    Last Post: 02-13-2013, 04:14 PM
  4. Query to Sum Values and Remove Duplicates
    By noobaccessuser in forum Queries
    Replies: 1
    Last Post: 12-06-2012, 07:12 PM
  5. Replies: 1
    Last Post: 06-08-2012, 11:14 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