Results 1 to 6 of 6
  1. #1
    DB2010MN26 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Sep 2010
    Posts
    37

    Force the dropdown list to display on Combo Box

    I have a combobox which has a row source of a table which lists my clients as well as thier client id. When I type in the combobox, it auto completes to the nearest possible match of client. I'm fine with it functioning this way, however I have to click the down arror to the right of the box in order to get it to display the row list of possible clients in my table.

    I would like to have this dropdown list display permanately so that when I open the form, the drop down list always displays. How do I go about doing this?, I can't seem to find anything in the property sheet.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    You want it dropped down whether the combo has focus or not? I don't think you can. Perhaps you want a listbox instead of a combo.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    DB2010MN26 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Sep 2010
    Posts
    37
    When I try to create a listbox though, it will only index to the first letter. So for example, if I type the letter F it scroll down to last names with F, but then if I type I, it will go back up to records that start with I.

    The combo box lets me search directly. Can this be enabled with a listbox?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    To my knowledge you can't type into a listbox, so I suspect you're stuck with a combo. I don't think you can leave it dropped down if it doesn't have focus, but you can drop it down automatically when it gets focus with:

    Me.ComboName.DropDown

    in the got focus event.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    DB2010MN26 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Sep 2010
    Posts
    37
    That code worked great, I also set for the after update event as well.

    Thanks!

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    No problem!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 3
    Last Post: 08-19-2011, 09:25 AM
  2. Dropdown list
    By stratack in forum Access
    Replies: 1
    Last Post: 07-25-2011, 06:58 AM
  3. Dropdown List: Use Each Item Once?
    By Heavy Doody in forum Access
    Replies: 1
    Last Post: 05-02-2011, 07:44 AM
  4. Combo Box List display HELP!
    By ehabo in forum Access
    Replies: 11
    Last Post: 01-04-2011, 12:55 PM
  5. Set up a dropdown List
    By asherbear in forum Access
    Replies: 2
    Last Post: 06-24-2010, 06:45 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