Hi
My explanation is first, and Question is at the end.
My relational db design experience says the way to design lookups is to have a table for each category of lookup.
It gets a bit clumbsy with several small lookup tables each only containing 5 or so values.
I have seen a few others do it differently.
They put all the values in one table with an extra column indicating the category of the corresponding value.
ie
Category Value
status Registered
status Complete
.
.
tasktype New Applic
tasktype Closure
tasktype Transfer
The where-ever you need to lookup a list, (the row source in a table or a form combo box), you use a simple query that filters for the category of value you need so on the relevant list of values shows up.
QUESTION:
Is this second method better?
It has less clutter of small tables, just one table, making it easier to maintain the lists as they are all in the one table. It may make the database faster as there is less tables to connect to, but then there are more queries to be run on that table.
Note: I dont want to put my list of lookup values as a value list directly in the row source of the table and/or combo control as I want to be able to maintain the list of values easily (during design and also during future development and maintenance of the db).
Any comments and help is greatly appreciated.
Zollo9999
..........
Zollo A+ / VBA Developer
![[thumbsup] [thumbsup] [thumbsup]](/data/assets/smilies/thumbsup.gif)
My explanation is first, and Question is at the end.
My relational db design experience says the way to design lookups is to have a table for each category of lookup.
It gets a bit clumbsy with several small lookup tables each only containing 5 or so values.
I have seen a few others do it differently.
They put all the values in one table with an extra column indicating the category of the corresponding value.
ie
Category Value
status Registered
status Complete
.
.
tasktype New Applic
tasktype Closure
tasktype Transfer
The where-ever you need to lookup a list, (the row source in a table or a form combo box), you use a simple query that filters for the category of value you need so on the relevant list of values shows up.
QUESTION:
Is this second method better?
It has less clutter of small tables, just one table, making it easier to maintain the lists as they are all in the one table. It may make the database faster as there is less tables to connect to, but then there are more queries to be run on that table.
Note: I dont want to put my list of lookup values as a value list directly in the row source of the table and/or combo control as I want to be able to maintain the list of values easily (during design and also during future development and maintenance of the db).
Any comments and help is greatly appreciated.
Zollo9999
..........
Zollo A+ / VBA Developer
![[thumbsup] [thumbsup] [thumbsup]](/data/assets/smilies/thumbsup.gif)