What to use instead of lookup fields

R

Russell

I was just reading the Access MVP site. One of the things
it said you should avoid in Access is using lookup fields.
I was wondering what I should be using instead.
 
A

Arvin Meyer

Russell said:
I was just reading the Access MVP site. One of the things
it said you should avoid in Access is using lookup fields.
I was wondering what I should be using instead.

Use a query, adding both tables. For form combo/list boxes you can also use
a select statement. The admonition is partly because users should not be
looking in tables anyway. Very few database systems, and even fewer good
database administrators allow this.

In Access, since there are no Triggers, it is important to use forms for all
data entry so that good validation can be carried out. You cannot run code
from tables, nor can you run any expressions which have user definined code.
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:
http://www.datastrat.com
http://www.mvps.org/access
 
G

Guest

So the best way to do it is to have say the branch name in
a separate table. Then on the form for the main table
change the text box for the branch name to a combo box and
put a select in the Control Source?
 
A

Albert D. Kallal

So the best way to do it is to have say the branch name in
a separate table. Then on the form for the main table
change the text box for the branch name to a combo box and
put a select in the Control Source?

Sure, the above works well, and is one good solution. In fact, you can use
the wizard to build the combo box, and it is really easy when you do this.

The above is certainly one of the most common ways to "look up" data from
another table.

Another good solution as mentioned is to simply use a query, and drop in the
3 or 4 other tables that you need to fetch the values from...
 

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

Top