Results 1 to 3 of 3
  1. #1
    orangeman2003 is offline Novice
    Windows 8 Access 2010 32bit
    Join Date
    Nov 2013
    Posts
    21

    Limiting Query Results to Unique Values

    Hi,



    technically nothing is wrong with my query but my issue is related to repeating rows in a query. As my screen shot shows, I have a relationship between something called 'common name', 'filename' and 'system'. The problem is that in a report, I am hiding the 'filename' field because it is too granular to show. However, Access still displays a record based on the number of files it maps to. For example, I have a 'common name' called 'TADDM'. This has 7 files associated to it and 1 system. In my report access lists this record 7 times (as it should) even if I hide the 'filename' field. I am trying to get it so that where multiple records exist for the 'filename' entity, access only shows a unique value. Select DISTINCT will not work in this instance because each filename is different.

    Is what I want to do even possible?Click image for larger version. 

Name:	repeatingrows.jpg 
Views:	19 
Size:	161.4 KB 
ID:	14855

    If you take the 'TADDM' example in my screen shot essentially I want this record shown 1 time, not 7.

    Thanks!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    If you don't want that field to show then why is it in the query?

    Maybe do a report grouping on the CommonName field and don't even bring Filename into the report. Size the detail section to 0 or set it not visible.
    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
    Demerit's Avatar
    Demerit is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Nov 2013
    Posts
    125
    Note that in a query, all associated records for an item must show up. A query is not meant to be visible to users. So to have "TADDM" appear once, this can only be done in the report by grouping Tbl_Files.CommonName Just like June7 said. Of course thats what you want users to view it like.

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

Similar Threads

  1. Replies: 8
    Last Post: 10-22-2012, 07:43 PM
  2. Unique values
    By helpaccess in forum Queries
    Replies: 3
    Last Post: 09-19-2011, 03:46 PM
  3. Duplicate Query Reporting Unique Values...
    By Tomfernandez1 in forum Queries
    Replies: 5
    Last Post: 04-19-2011, 04:22 PM
  4. Replies: 9
    Last Post: 12-13-2010, 09:25 PM
  5. Limiting the results displayed in a report
    By musicalogist in forum Reports
    Replies: 1
    Last Post: 06-10-2010, 04:44 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