473,320 Members | 1,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

how to sort a combo box

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.
Nov 12 '05 #1
2 22032
On 20 Apr 2004 21:25:16 -0700, so**********@hotmail.com (Aravind)
wrote:
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.


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

Nov 12 '05 #2
Ray
so**********@hotmail.com (Aravind) wrote in message news:<61*************************@posting.google.c om>...
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.


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
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: raj | last post by:
When I try to sort my combo box I get the following error. "Cannot sort a ComboBox that has a DataSource set. Sort the data using the underlying data model." ...
2
by: Aravind | last post by:
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...
3
by: rquinnan | last post by:
Good Evening all, I would greatly appreciate any assistance on this Access 2003 quandary I'm in. And I do apologize if this has been answered somewhere else, I didn't see one that addressed my...
3
by: Frustrated Developer via DotNetMonster.com | last post by:
I have posted a couple times on here already and found the user community to be very helpful. I took on a project before I realized how difficult a time I'm having working with a database....
7
by: Arnold | last post by:
Greetings Gurus, In a mainform's header, I have a combobox named comboStudents. The rowsource for this combobox is: SELECT -999 As StudentID, "<Add New Student>" As FullName, "aaa" As...
4
AccessIdiot
by: AccessIdiot | last post by:
I have a combo box with a NotInList event on it that allows me to add a value through another form. When I return to the form that contains the combo box the value I added is at the bottom. How can I...
1
by: Kingkev83 | last post by:
I have a problem, i use a combo box to display members details in the following format display member: (concatinated field) Surname &' '& Forename &' '& MembershipNo & - & DateofBirth as...
3
by: RZ15 | last post by:
Hi guys, I have made a form with a combo box listing fields that a user can sort by. I have a code that works for this when i have 4 levels to sort by. It is the following: Private Sub...
1
by: pateras | last post by:
I generate code to automatically create combo boxes to handle relationships between tables: http://pastebin.com/m59d8f5b0 The problem is, when I sort on any other column, the combo boxes all...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.