update combo box with each entry

J

JRLH

I am trying to set a combo box so that it updates as I add
each new record. For example, the current box I'm working
on involves a list of potentially all of the hospitals in
the state, and each time I have a patient record from a
new hospital, I would like the combo box to be updated so
the name of the new hospital can be selected from the
combo box list later on.

Jennifer
 
T

Ted Allen

Hi Jennifer,

To do this, use a query as the Row Source for the combo
box. Just set up the query to query the unique list of
hospitals from your database. That way, every time one
is added it will automatically show up in the list in the
future.

HTH

-Ted Allen
 
G

Guest

I was able to get it to work, but the combo box is
allowing duplicates from the pull-down menu. For example:

Cook County Hospital
Cook County Hospital
Mayo Clinic
Mayo Clinic

The table that the query is based on is indexed to prevent
duplicates. Any suggestions?
 
T

Ted Allen

Hi Jennifer,

You can prevent duplicates from being listed by changing
the query "Unique Values" property to yes.

HTH, Ted Allen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

list box and combo box 1
Junction tables 4
Text Field is Now Combo Box 2
Automatically update text box 1
Combo Box 3
Row Source in combo box 3
Combo Box Wizard problem 1
Combo Box Help 1

Top