Results 1 to 7 of 7
  1. #1
    PicoTTS is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2016
    Posts
    29

    Combobox Unique Values Still Showing Duplicates

    Hi,

    I have 4 unbound comboboxes that i have populated with information from a query. I would like them to be used a way to help filter the subform I have on the form. I have set all the comboboxes to show only unique values, however, I am still getting some duplicates.

    I am pretty sure it has something to do with the way I have setup my row source. For example, I have 1 of my roww sources setup to be also dependent upon the 3 other comboboxes as such:
    [Forms]![Overview]![Product] Or [Forms]![Overview]![Product] is Null
    [Forms]![Overview]![City] Or [Forms]![Overview]![City] is Null
    [Forms]![Overview]![Customer] Or [Forms]![Overview]![Customer] is Null

    I set it up this way because sometimes I only want to use 2 of the comboboxes to filter and still show all possibilities for the unused filtered criteria.

  2. #2
    CJ_London is online now VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    OK - so you think it has something to do with your rowsource. Looking hard, but can't see it so not sure what to suggest

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Seems you are telling us HOW you did something and it isn't working as expected.
    For readers to offer focused suggestions, they/we need to know WHAT you were trying to accomplish.
    Just a plain English description - so we can understand WHAT your approach is "solving/trying to solve".

  4. #4
    PicoTTS is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2016
    Posts
    29
    Basically, I just wanted to create 4 unbound combo boxes and use them to filter a sub form i have on my form. The combobox lists should be coming from another table that may include multiple duplicates values within a field. I only want my filter lists to be show 1 instance (unique) Value. If any of the 4 unbound comboboxes are left empty, then hte subform should consider that field unfiltered and show all the data for that criteria. Sorry if it was unclear.

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    You may get some ideas from this free video by Steve Bishop.
    You might also post a copy of the database --remove anything private first, then zip and attach to POST.

  6. #6
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    If table 1 has two related record in table 2 and you are using both tables as a source of information. Then to show tables 2 information details from table 1 must appear twice.

    If thats how you are asking the database for information, thats how you will get it.

  7. #7
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Still not following these:

    I only want to use 2 of the comboboxes to filter and still show all possibilities for the unused filtered criteria.
    If any of the 4 unbound comboboxes are left empty, then hte subform should consider that field unfiltered and show all the data for that criteria. Sorry if it was unclear.

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

Similar Threads

  1. Replies: 7
    Last Post: 08-18-2015, 08:05 AM
  2. Unique values in combobox list
    By richardm55 in forum Forms
    Replies: 19
    Last Post: 07-10-2015, 12:40 AM
  3. Replies: 6
    Last Post: 10-23-2013, 08:06 AM
  4. Replies: 10
    Last Post: 10-18-2012, 08:10 AM
  5. Count unique records - no duplicates
    By Kevo in forum Queries
    Replies: 4
    Last Post: 08-15-2011, 01:19 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