Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Two table double lookup

Status
Not open for further replies.

zorro19s

Programmer
Jul 20, 2001
13
CA
I am forming one table2 out of table1. I want to have the option to select a part# from the list in table1 and the description from table1 shows up in table2. Or select description in table2 from table1 and part# shows up in table2? Please Help me with this?
 
if the part# is a primary key for the part then you could use the DLookup function which will lookup the description that is associated with that part#. Usually after you enter the part number you need to refresh the data to look it up. YOu could do this be writing the code using lost focus for that text and once you hit enter or tab it will look up the description the code is (name of field in form) = DLookup("[Description]", "[Form1]", "[Form1]![Part#]=[forms]![Form2]![part#]")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top