Results 1 to 7 of 7
  1. #1
    CementCarver's Avatar
    CementCarver is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2013
    Location
    Canada
    Posts
    231

    Distinct Combo Box Value only displaying one record in form

    I've designed my search combo boxes to only display distinct values of a particular field. But when I select one of these values, which should yield many records in my form, I only get one record displayed, related to the combo box.



    Rather, I was hoping to be able to display a subset of records.

    Is there any way of displaying the complete set of records in my related form, rather than just one record?

    For example, my combo box allows the user to select either district 1 or 2 as a search criteria. But I only get one record if I select 1 as my search.

    Can anyone help?


    CementCarver

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,848
    Show us some code so we can see what you have.

  3. #3
    CementCarver's Avatar
    CementCarver is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2013
    Location
    Canada
    Posts
    231
    I have no code to drive this functionality. I'm only using what's given to me in the access 2010 forms environment.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,848
    Can you post your database, and provide some details on what and where I should be looking?

  5. #5
    CementCarver's Avatar
    CementCarver is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2013
    Location
    Canada
    Posts
    231
    Unfortunately, due to a confidentially agreement, I cannot share any of this data. All I can say is that I have one column called district. All of my members belong to either district one or district two. When I built my membership form, I used a combo box to search for particular records. The company name combo box that i have working, works well, since it's able to drill to a particular membership record. But the district combo box, after I made it select only distinct records, ie. 1. or 2, after I select district 1, only the first record complying with this search comes up, but they are not grouped or filtered.

    CementCarver

  6. #6
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Quote Originally Posted by CementCarver View Post
    I have no code to drive this functionality. I'm only using what's given to me in the access 2010 forms environment.
    If you're saying that you're using the Third Option from the Combobox Wizard, to do this, all you're going to get is the first match, as it uses the FindFirst method, which does just that, finds the first match.

    To do what you're talking about you'll need custom code in the AfterUpdate event of your Combobox. Search here and/or elsewhere using the terms 'MS Access' and 'search form.'

    Linq ;0)>

  7. #7
    CementCarver's Avatar
    CementCarver is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2013
    Location
    Canada
    Posts
    231
    thx Missinglinq.

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

Similar Threads

  1. Form is not displaying newest record first
    By JeroenMioch in forum Programming
    Replies: 1
    Last Post: 02-07-2013, 02:32 PM
  2. Replies: 1
    Last Post: 05-10-2011, 12:06 PM
  3. Replies: 1
    Last Post: 02-16-2011, 11:40 AM
  4. Replies: 2
    Last Post: 02-04-2011, 08:27 AM
  5. Displaying URL in a form combo box
    By jedwhines in forum Forms
    Replies: 0
    Last Post: 10-27-2009, 09:31 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