473,395 Members | 1,975 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,395 software developers and data experts.

Record Search through Combo Box problem

Hi,
I have a table of around 1000 rows; patient records. Each row is
individually defined by a Patient ID number which is my primary key.

I have made a simple form to display patient information for the
secretaries working in the office. I would like them to be able to
easily search through all the records using a combo box, that they can
just type in the person's name. I have managed to make it work so far
as when the last name is typed in the, the first person with that last
name comes up (first person being the person with the lowest Patient ID
number).

I would like to be able to alphabetize the combo box list, because now
it's ordered by the Patient ID number, thus the names are nothing but a
jumble in the combo box. I cannot make last names the primary key
because multiple people have the same last name.

How can I easily create a combo box that is alphabetically ordered, can
be typed into, and will display a record on the form when it is clicked
on in the combo box?

I'm a newbie at queries as well.

Thanks all!

Jan 5 '07 #1
3 2462
MF:

In the design of your form, go to the Properties of your ComboBox. On
the Data tab, click in the Row Source field. You should see a button
with 3 dots on it to the right of the Row Source. Click that, which
takes you to the query for your ComboBox. In your PatientName column,
change the Sort to Ascending. Then close the query and click Yes to
update the property. That should do it!

HTH,
Jana
mf193 wrote:
Hi,
I have a table of around 1000 rows; patient records. Each row is
individually defined by a Patient ID number which is my primary key.

I have made a simple form to display patient information for the
secretaries working in the office. I would like them to be able to
easily search through all the records using a combo box, that they can
just type in the person's name. I have managed to make it work so far
as when the last name is typed in the, the first person with that last
name comes up (first person being the person with the lowest Patient ID
number).

I would like to be able to alphabetize the combo box list, because now
it's ordered by the Patient ID number, thus the names are nothing but a
jumble in the combo box. I cannot make last names the primary key
because multiple people have the same last name.

How can I easily create a combo box that is alphabetically ordered, can
be typed into, and will display a record on the form when it is clicked
on in the combo box?

I'm a newbie at queries as well.

Thanks all!
Jan 5 '07 #2
WOW...thank you!!! Worked perfectly. I feel pretty stupid, I was
messing with this for hours trying to write sortable queries. Thanks so
much Jana.

On Jan 5, 2:59 pm, "Jana" <Bauer.J...@gmail.comwrote:
MF:

In the design of your form, go to the Properties of your ComboBox. On
the Data tab, click in the Row Source field. You should see a button
with 3 dots on it to the right of the Row Source. Click that, which
takes you to the query for your ComboBox. In your PatientName column,
change the Sort to Ascending. Then close the query and click Yes to
update the property. That should do it!

HTH,
Jana

mf193 wrote:
Hi,
I have a table of around 1000 rows; patient records. Each row is
individually defined by a Patient ID number which is my primary key.
I have made a simple form to display patient information for the
secretaries working in the office. I would like them to be able to
easily search through all the records using a combo box, that they can
just type in the person's name. I have managed to make it work so far
as when the last name is typed in the, the first person with that last
name comes up (first person being the person with the lowest Patient ID
number).
I would like to be able to alphabetize the combo box list, because now
it's ordered by the Patient ID number, thus the names are nothing but a
jumble in the combo box. I cannot make last names the primary key
because multiple people have the same last name.
How can I easily create a combo box that is alphabetically ordered, can
be typed into, and will display a record on the form when it is clicked
on in the combo box?
I'm a newbie at queries as well.
Thanks all!
Jan 5 '07 #3
LOL No problem. Glad it worked for ya!

Jana

mf193 wrote:
WOW...thank you!!! Worked perfectly. I feel pretty stupid, I was
messing with this for hours trying to write sortable queries. Thanks so
much Jana.

On Jan 5, 2:59 pm, "Jana" <Bauer.J...@gmail.comwrote:
MF:

In the design of your form, go to the Properties of your ComboBox. On
the Data tab, click in the Row Source field. You should see a button
with 3 dots on it to the right of the Row Source. Click that, which
takes you to the query for your ComboBox. In your PatientName column,
change the Sort to Ascending. Then close the query and click Yes to
update the property. That should do it!

HTH,
Jana

mf193 wrote:
Hi,
I have a table of around 1000 rows; patient records. Each row is
individually defined by a Patient ID number which is my primary key.
I have made a simple form to display patient information for the
secretaries working in the office. I would like them to be able to
easily search through all the records using a combo box, that they can
just type in the person's name. I have managed to make it work so far
as when the last name is typed in the, the first person with that last
name comes up (first person being the person with the lowest Patient ID
number).
I would like to be able to alphabetize the combo box list, because now
it's ordered by the Patient ID number, thus the names are nothing but a
jumble in the combo box. I cannot make last names the primary key
because multiple people have the same last name.
How can I easily create a combo box that is alphabetically ordered, can
be typed into, and will display a record on the form when it is clicked
on in the combo box?
I'm a newbie at queries as well.
Thanks all!
Jan 5 '07 #4

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

Similar topics

4
by: Skully Matjas | last post by:
I am using the following code (created by the wizard) to allow to bring my form to a particular entery. But when I edit the entery (ex: put new information into a blank cell), it puts that record...
3
by: J | last post by:
I've moved the database tables from the .mdb file to Sql Svr and now I have an *intermittent* problem. When I select a record from a combo box, it will intermittently pull up the wrong record. ...
8
by: Zlatko Matić | last post by:
There is a form (single form) and a combobox. I want that current record of the form is adjusted according to selected value in the combobox. Cuurrent record should be the same as the value in the...
0
by: Kaur | last post by:
Hi, I am having problem trying to go to same record when I close 3rd form. I have a form called frmDepartment. This form has a list box that displays all the departments. Clicking on one of the...
6
by: AA Arens | last post by:
Hi, I have a database with 2 main forms. Contacts and companies. I share the base with two others via LAN. On the companies form I have buttons to navigate throught the records (>400). We are...
6
by: San | last post by:
Hey, I need to create a form with several text boxes in which users type in key words, press a command button on the form and it opens a matching record. Thanking you in advance.
1
by: asavu | last post by:
Hello, I'm somewhat new to this, and I definately need some help. I have a db for a small business, and I have a main form, Customer Info, which has a subform Appliance Info, which has a subform...
1
by: BayZee | last post by:
I have a main form with a serach box and bound record boxes. When user enters criteria in a search box, the new form pops up that has a combo box with the list of accounts that satisfy search...
6
by: MyWaterloo | last post by:
''''''''''''''''''''''''''''''''''''''''''' ' The AfterUpdate event procedure used in ' ' the Find Customer combo box search. ' ''''''''''''''''''''''''''''''''''''''''''' 'Moves to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.