473,400 Members | 2,145 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,400 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 22046
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.