Results 1 to 4 of 4
  1. #1
    aputt@ssd.com is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2009
    Posts
    2

    Question Sort Combo Box Contents

    I have a ComboBox list 2 columns. One column is an ID number and the second column is a persons name. I have the column headings displayed. Is it possible to have the combo box sort on either column by just clicking on the column heading?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    The RowSource of the ComboBox would need to change each time.

  3. #3
    aputt@ssd.com is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2009
    Posts
    2

    Attempted with no luck

    I attempted to perform the sorting on the combo (Using On Click) by using an if statement and changing the Row Source to whichever query is needed. I get nothing for my efforts. Can you provide a sample for me to follow? I am using Access 2003.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Now that I think about it, I do not know if you can see the column where the click happens. The control can return the Row selected but the columns are just for display.

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

Similar Threads

  1. Distribute table contents evenly
    By arfaha in forum Access
    Replies: 0
    Last Post: 11-14-2009, 02:32 PM
  2. How to sort by three sort orders
    By captgnvr in forum Access
    Replies: 4
    Last Post: 11-09-2009, 07:30 AM
  3. Remove contents from each field
    By nancyszn in forum Access
    Replies: 7
    Last Post: 08-06-2009, 03:41 PM
  4. Updating one table with anothers contents
    By munkifisht in forum Access
    Replies: 0
    Last Post: 07-22-2009, 03:22 PM
  5. Fields and their contents
    By Ham in forum Access
    Replies: 0
    Last Post: 02-06-2009, 07:34 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