Combo Boxes/Queries



When I create a query based on a table, where I used combo boxes, the field
comes up with a number?

Should you have the field as a Lookup field in the table or create a combo
box in a form as a lookup or SQL?




Jeff Boyce


Congratulations! You've (re-)discovered one of the reasons folks here in
the newsgroups hold the "lookup field" data type in table definitions in
general low regard.

What is actually being stored in your table is what you are finding, the
primary key of the record in the lookup table. ... even though looking in
the table makes it look like the table's storing the "looked up" value!

Most folks here strongly recommend changing the lookup field in the table
back to a number field (depends on the PK type in your lookup table), then
using a combobox based on the lookup table in a form.

Good luck!


Jeff Boyce
Microsoft Access MVP

Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer

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