Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228

    Dont show duplicate field values

    Im importing data relating to staff hours and staff miles.

    These are then put on a PO for invoicing on two seperate lines.

    This means each member of staff can appear on my data twice. I only want to see their name once (if they have a related record within the criteria then the name displays).

    I could simply filter by "hours" as you should assume that if anyones done some miles then they have done some hours. But on the off chance someones claiming for a previous week then I dont want to limit the results.

    I have a few ideas how to do this via update querys but im wondering if this can be done at the query level (select Query). any help appreciated.

  2. #2
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Is this a report? Are the lines consecutive? If so, set the property Hide Duplicates to yes.

  3. #3
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    Its just a select query that ill use as a record source for a form that shows outstanding invoices. if I turn on unique records or unique values it does nothing as the record is unique. The member of staff it relates to (this name is in the query also) is the only "non" unique part.

  4. #4
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    you need to remove all the fields which stop making the record unique

  5. #5
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    just to explain the problem better.

    table 1 has a 1 to many relationship to table 2.

    I want to see all of table 1 records that have a related record. But I want to see them only once. I don't need to see any data in table 2 at this point.

    Its probably something I've done 100 times before and simple. I'm not seeing it though right now haha.

  6. #6
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    Its okay. I can just do another query and group by name.. I don't know why that took me so long

    Thanks both.

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

Similar Threads

  1. Duplicate Values for one Field
    By Canadiangal in forum Access
    Replies: 4
    Last Post: 03-09-2013, 10:26 PM
  2. Replies: 5
    Last Post: 01-29-2013, 03:38 PM
  3. Replies: 20
    Last Post: 09-12-2012, 06:52 PM
  4. Combobox to show two field values
    By lnordstrom in forum Forms
    Replies: 2
    Last Post: 03-30-2011, 12:33 PM
  5. Dont show null fields in report
    By senna in forum Reports
    Replies: 4
    Last Post: 03-03-2011, 02:30 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