Hello,
I recently have decided to further normailize an already functioning database to improve efficiency. I wanted to know what the benefits are of using the lookup tab for each column in the table design, beyond just limiting the values that can be entered.
As an example...
tblNames
ID | Name
-----------------------
1 |Lloyd
2 |Harry
3 |Moe
tblJobs
ID | Job
------------------------
1 |Dig
2 |Hammer
3 |Sand
tblBilling
Job# | NameID | JobID | Price/hr
------------------------
1 |3 |2 | $10.50
2 |1 |1 | $12.75
3 |2 |3 | $19.25
4 |3 |3 | $18.80
If I were to use the lookup tab to join tblBilling.Name to tblName.ID, with a combobox, could I have the value of the tblBilling.Name show 'Lloyd' for Job# 1 ? without having to click on the combo box and scroll over to column 2? If I could have it show this, could I then query tblBilling for all jobs Lloyd performs by using 'Lloyd' for the criteria without including tblNames in the query?
-or-
Is this impossible and I should just join the two tables on ID and then query the name? And if so, what is the benefit of that lookup tab then?
Thanks,
David
I recently have decided to further normailize an already functioning database to improve efficiency. I wanted to know what the benefits are of using the lookup tab for each column in the table design, beyond just limiting the values that can be entered.
As an example...
tblNames
ID | Name
-----------------------
1 |Lloyd
2 |Harry
3 |Moe
tblJobs
ID | Job
------------------------
1 |Dig
2 |Hammer
3 |Sand
tblBilling
Job# | NameID | JobID | Price/hr
------------------------
1 |3 |2 | $10.50
2 |1 |1 | $12.75
3 |2 |3 | $19.25
4 |3 |3 | $18.80
If I were to use the lookup tab to join tblBilling.Name to tblName.ID, with a combobox, could I have the value of the tblBilling.Name show 'Lloyd' for Job# 1 ? without having to click on the combo box and scroll over to column 2? If I could have it show this, could I then query tblBilling for all jobs Lloyd performs by using 'Lloyd' for the criteria without including tblNames in the query?
-or-
Is this impossible and I should just join the two tables on ID and then query the name? And if so, what is the benefit of that lookup tab then?
Thanks,
David