Linking table to controls

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a combo box with a drop down list with 3 columns
belonging to a table. What method can I use to address
all other remaining fields of this table not listed in
the drop down list after the selection is made I assume
that there would be a pointer to the record of the table.
Thank you.
Satch
 
Hi,
If you created the box from the wizard query, you would have noticed that
the a column was ticked to be the hidden column - this is the autonumber or
primary key field for the table.

You can also click on the record source (?) of the combobox, and it will
show you which fields are included in the combobox, ie the displayed column
and the primary key. You can then use the primary key to retrieve & display
the rest of the record by filtering the table.

hth
Marc
 
Please forgive me. Where is the record source on the
properties list of the combo box? There is a control
source.
My combo box was not set up by the wizard. I am still not
clear about location of the key or autonumber
I am a newbee. Have mercy
Thanks
Satch
 
It's Row Source, not Record Source. Fourth property from the top on the Data
tab.

--
Brendan Reynolds (MVP)
http://brenreyn.blogspot.com

The spammers and script-kiddies have succeeded in making it impossible for
me to use a real e-mail address in public newsgroups. E-mail replies to
this post will be deleted without being read. Any e-mail claiming to be
from brenreyn at indigo dot ie that is not digitally signed by me with a
GlobalSign digital certificate is a forgery and should be deleted without
being read. Follow-up questions should in general be posted to the
newsgroup, but if you have a good reason to send me e-mail, you'll find
a useable e-mail address at the URL above.
 
Assuming you combo box is 4 6 (and you *can* have the other I hidden if you
wish with a length setting of zero).

In the combo box after update event, you can select/set other values from
the combo selection by:


me.MyPrice = me.MyComboBox.column(3)

The above would grab the 4 collum (it is zero based).
 
Back
Top