Results 1 to 2 of 2
  1. #1
    DanMan is offline Novice
    Windows Vista Access 2003
    Join Date
    Nov 2011
    Posts
    1

    Hiding duplicate entries from 2 fields (Grouped)

    Hello there. I was hoping someone may be able to assist me with a problem I am struggling to nut out.



    I have a database for vehicle pre start check list faults. I have a report set up to print out a sheet for each sub contractor regarding with faults listed for their machines. Sometimes there are duplicate entries with the Vehicle and Description fields. Eg. Fork Lift 11, Horn not working.

    When processing this particular report I would like these duplicate entries to show the first record and then hide the duplicates. Is there any way of doing this and still keeping the other fields.

    I figured out how to do it using a query and the unique values option in the Query Properties but I had to remove all fields except these 2. Therefore it not suitable.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    If there are other fields needed and the data varies then the records are not duplicates. These records have a unique record ID? Do you want the record with the greater ID? You need to do a query that returns the Max ID for each unique Vehicle and Description pair. Then do a query that selects records where ID is in the first query. Review http://www.techonthenet.com/sql/exists.php
    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.

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

Similar Threads

  1. Problem with code to prevent duplicate entries
    By ResearchRN in forum Programming
    Replies: 5
    Last Post: 11-08-2011, 12:12 PM
  2. Replies: 2
    Last Post: 04-20-2011, 06:59 AM
  3. validation setting for duplicate entries
    By noweyout in forum Forms
    Replies: 1
    Last Post: 02-18-2011, 06:14 AM
  4. Hiding fields in a subform
    By degras in forum Forms
    Replies: 7
    Last Post: 01-18-2011, 10:55 AM
  5. Query to Average on Grouped Fields
    By randolphoralph in forum Queries
    Replies: 1
    Last Post: 03-16-2010, 08:03 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