Connecting Tech Pros Worldwide Help | Site Map

how to sort a combo box

  #1  
Old November 12th, 2005, 10:56 PM
Aravind
Guest
 
Posts: n/a
Hi folks.

I'm doing a library system which contains a table caled "Member",
which in turn contains an ID key and the member's name. I have a combo
box which allows the user to pick a name from the combo box to view
that person's history of borowing books, etc. However, the combo box
is not sorted by name (its sorted by the ID key, which I kept hidden).
So how do I sort the combo box by name? Thank you.
  #2  
Old November 12th, 2005, 10:56 PM
Mike Preston
Guest
 
Posts: n/a

re: how to sort a combo box


On 20 Apr 2004 21:25:16 -0700, solaris_nite@hotmail.com (Aravind)
wrote:
[color=blue]
>Hi folks.
>
>I'm doing a library system which contains a table caled "Member",
>which in turn contains an ID key and the member's name. I have a combo
>box which allows the user to pick a name from the combo box to view
>that person's history of borowing books, etc. However, the combo box
>is not sorted by name (its sorted by the ID key, which I kept hidden).
>So how do I sort the combo box by name? Thank you.[/color]

Select the combo-box in form design. Right click and activate
PROPERTIES (if the first time you do this the PROPERTIES box closes,
just do it a second time and it will reopen). Select the DATA tab.
Select the ROWSOURCE line. Click the elipses to the right (three dots
"..."). Click on the SHOW check box below the field with the member's
name. Save.

mike

  #3  
Old November 12th, 2005, 10:56 PM
Ray
Guest
 
Posts: n/a

re: how to sort a combo box


solaris_nite@hotmail.com (Aravind) wrote in message news:<6174ca57.0404202025.543b6fe@posting.google.c om>...[color=blue]
> Hi folks.
>
> I'm doing a library system which contains a table caled "Member",
> which in turn contains an ID key and the member's name. I have a combo
> box which allows the user to pick a name from the combo box to view
> that person's history of borowing books, etc. However, the combo box
> is not sorted by name (its sorted by the ID key, which I kept hidden).
> So how do I sort the combo box by name? Thank you.[/color]

Hello,

Set the name field to Ascending in the sort row for the
Row Source of your combo-box, whether it be a query or SQL.

Regards,

Ray
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
2 Combo Box Menu from Multiple Query hmiller@hartford.edu answers 3 December 16th, 2005 09:45 PM
I can't sort my combo box. Please Help! raj answers 6 November 22nd, 2005 03:29 PM
Sorting form records on the unbound column in a combo box on the form Todd answers 2 November 13th, 2005 02:43 AM
how to sort a combo box Aravind answers 2 November 12th, 2005 10:30 PM
I can't sort my combo box. Please Help! raj answers 6 July 21st, 2005 07:34 PM