Results 1 to 5 of 5
  1. #1
    Kevo is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2011
    Location
    Kodiak, Alaska
    Posts
    86

    Alphabetize cascading combobox results

    Good afternoon,



    I have a form that has cascading comboboxes. I choose the "Department" from the first combobox & then the 2nd combobox offers all the instruments that belongs to that department. Here is my question.....

    When you enter into 2nd combo box and start typing....let's say your looking for "Major Instrument Set" - so you start typing "Maj.... and it autofills what it thinks you want.....and you can click on the dropdown arrow and it shows the list of all instruments. The problem is this drop down list is not alphabetical, so, you type "Maj and the next item in the drop down may be "hemostat" or "needle holder".

    What I would like it to do is.....start typing "Majo (for Major Instrument Set) and the first items on the dropdown list would be..... "Major Basin"....then "Major Instrument".... then "Major Whatever"

    So, Can you alphabetize the drop down list of a combo box?

    Thanks,
    Kevin

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,901
    Include ORDER BY clause in the combobox RowSource query.
    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.

  3. #3
    Kevo is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2011
    Location
    Kodiak, Alaska
    Posts
    86
    Quote Originally Posted by June7 View Post
    Include ORDER BY clause in the combobox RowSource query.

    I believe it is already set to ORDER BY....but it is not behaving correctly. Possibly has something to do with the cascading combo box?

    I have attached my DB if anyone has time to look at it.

    Main Menu --> Sterilization Menu --> Add New Load --> pick a department under DepartmentID and then pick an instrument under InstrumentIDSPD.zip.....the instrument drop down list is the one I am trying to come up alphabetized.

    Thanks for any help!

    Kevin

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,901
    Only SetID combobox in frmLoadDetails subform has ORDER BY clause. Fix the RowSource and combobox list will sort.
    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.

  5. #5
    Kevo is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2011
    Location
    Kodiak, Alaska
    Posts
    86
    Thank you so much June7!

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

Similar Threads

  1. Replies: 1
    Last Post: 06-25-2012, 02:15 PM
  2. Cascading ComboBox Question
    By Kevo in forum Forms
    Replies: 14
    Last Post: 07-27-2011, 08:48 AM
  3. Autofill Text Box from Cascading Combobox
    By desibabu90 in forum Forms
    Replies: 14
    Last Post: 06-28-2011, 11:31 AM
  4. cascading combobox and validation rule violation
    By AndycompanyZ in forum Forms
    Replies: 7
    Last Post: 06-22-2011, 12:13 PM
  5. Alphabetize Information
    By caljohn527 in forum Forms
    Replies: 1
    Last Post: 02-11-2009, 10:50 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