Table1 has a field ItemID
; I use that to lookup the corresponding record in Table2, which has fields ItemID
and ItemDescription
.
My form uses Table1 as its Recordsource. I want to display ItemDescription
from Table2 in a combobox or textbox.
From what I've read, there are several ways to accomplish this, but I can't tell which is considered the standard method:
- Add a subform to the form, with Table2 as its Recordsource.
- Make a query combining Table1 and Table2, and use the query as the form's Recordsource.
- Use a SELECT statement as Table1's Recordsource that pulls in fields from both tables. (Basically, using the aforementioned query in a different way.)
- Use DLOOKUP as the Control Source of the textbox, something like
=Dlookup("ItemDescription","Table2","ItemID = Forms!MyForm!ItemID"
In my case, I expect I'll have to link Table1 to about five different lookup tables; and some of those may have lookup tables of their own.
What is the best way to show data on the form from these multiple tables?