Combo Box

G

Guest

My primary key is a combo box in the table and form. In the form, how can I select an item from this combo box and have the complete record appear

Thanks!
 
G

Guest

After looking at this further, I need to reword my question. What I'd like to do is: in a form, enter data into my primary key (combo box) and also be able to select that data so that its complete record is found

----- JohnLute wrote: ----

My primary key is a combo box in the table and form. In the form, how can I select an item from this combo box and have the complete record appear

Thanks!
 
J

John Vinson

My primary key is a combo box in the table and form. In the form, how can I select an item from this combo box and have the complete record appear?

Thanks!

You're mistaken, misled by a Microsoft misfeature. Your Primary Key is
a numeric field, not a combo box.

A Combo Box IS NOT A DATA TYPE. It's a tool to display data! The
Lookup Wizard is a very deceptive and rather useless misfeature in my
opinion: see http://www.mvps.org/access/lookupfields.htm for a
critique.

To answer your question, you *do not* need a Lookup Field to
accomplish what you want. You cannot do what you want in a table
datasheet - no usable events; on a Form you should use the Combo Box
wizard in the form toolbox to create an unbound combo, using the
option "Use this combo box to find a record". If the wizard doesn't
cooperate post back - it involves a little bit of VBA code but it's
pretty easy.
 

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

Combo Box and First Record 5
combo box filter 1
Combo Box 3
Combo Box Sync 5
Report, Combo-Box 1
Combo box not displaying field from SQL backend 1
Combo Box Help 7
Combo Box - Help Please! 5

Top