Drop Downs In Access

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Kammmie

Thread Starter
Joined
Aug 14, 2001
Messages
132
Sorry for all of the Access questions lately but I'm doing a project for work and I'm going into some areas of Access that I've never dealt with.

In Excel you can use formulas so that if you enter something in column a it brings up information you've matched to it in column b automatically.

Is there a way to do this in Access? For example:

Column A
Column B
Column C

If I type a part number in column A I want the description to automatically come up in column B and the price to automatically come up in column c.

Can anyone help?

Thanks,
Kammmie
 
Joined
Feb 14, 1999
Messages
11,746
First Name
Anne
Sure. You create a table called tblParts with:

PartID (autonumber)
PartNo (text)
PartDesc (text)
PartPrice (curr)

Now, in your *main* table, where you're going to keep your records, you put a field called Part or PartNo or whatever. When choosing the field type, you choose Lookup. You look up to the tblParts, you use the PartID and PartNO as the 2 fields, hiding the first field.

All done tables.

When you want to VIEW (vlookup) the other data about the parts, you build a query.
You bring the tblParts and the tblMain into the query. You drag the PartNo field from the tblMain into the query, and the other (vlookup) fields from tblParts into the query...

You base any forms or reports (in which you need that info) on this query.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top