Hi all,
I am trying to design my database according to the rules I see in these forums as I'm hoping that by doing so I can avoid the pitfalls that you far more experienced developers have already discovered!
My question is when is the best time to have a "lookup" function for the user to select from a list?
Prior to looking at these forums I was using the lookup wizard within the table and found this to work fairly well because it would populate my table with ID numbers but would display the "Description" field from the linked table meaning that the tables were fairly easy to follow.
If I do not use the wizard then my tables become populated with ID numbers from all around my database which is not a problem from a "functionality" point of view but doesn't make the tables very easy to understand because you end up with column after column of integers.
The other benefit of using the lookup wizard was that when converting a table to a form a lookup wizard column would automatically generate a combobox populated with the values from the source table and would negate the need for me to play with it at all! If I follow the advice of the forum users and do not use the lookup wizard I simply get a textbox. Also because the source table is in a subform and is displayed as a datasheet there is not list against any of the fields in the subform either.
Forum user WaiveIt very kindly helped me to come up with the following format for my tables and I can see that it works in terms of the relationships between each field and how they link together.
The format of my tables is as follows:
Extrusions "Individual components making up an assembly - indicates the assembly they are part of and the 'Type' of component they are"
PK - ID - AutoNumber
FK - Ass_Profile_ID - Number
FK - Ext_Type_ID - Number
ProfileCode - Text
ExtrusionType "List of the 'Types' of component available"
PK - ID - AutoNumber
Description - Text
AssembledProfiles "List of assemblies available"
PK - ID - AutoNumber
ProfileCode - Text
Please could you advise if I am approaching this in the correct manner and what I should do to counteract the issues I've mentioned above?
My intention is that I can store the assembly information via a form the user fills in to select the various components and the part of the assembly they are. I also need to use this information to allow me to "convert" stock from components to assemblies so that stock is downdated as an assembly is manufactured and updated with the completed assembly.
Many thanks,
Dan
I am trying to design my database according to the rules I see in these forums as I'm hoping that by doing so I can avoid the pitfalls that you far more experienced developers have already discovered!
My question is when is the best time to have a "lookup" function for the user to select from a list?
Prior to looking at these forums I was using the lookup wizard within the table and found this to work fairly well because it would populate my table with ID numbers but would display the "Description" field from the linked table meaning that the tables were fairly easy to follow.
If I do not use the wizard then my tables become populated with ID numbers from all around my database which is not a problem from a "functionality" point of view but doesn't make the tables very easy to understand because you end up with column after column of integers.
The other benefit of using the lookup wizard was that when converting a table to a form a lookup wizard column would automatically generate a combobox populated with the values from the source table and would negate the need for me to play with it at all! If I follow the advice of the forum users and do not use the lookup wizard I simply get a textbox. Also because the source table is in a subform and is displayed as a datasheet there is not list against any of the fields in the subform either.
Forum user WaiveIt very kindly helped me to come up with the following format for my tables and I can see that it works in terms of the relationships between each field and how they link together.
The format of my tables is as follows:
Extrusions "Individual components making up an assembly - indicates the assembly they are part of and the 'Type' of component they are"
PK - ID - AutoNumber
FK - Ass_Profile_ID - Number
FK - Ext_Type_ID - Number
ProfileCode - Text
ExtrusionType "List of the 'Types' of component available"
PK - ID - AutoNumber
Description - Text
AssembledProfiles "List of assemblies available"
PK - ID - AutoNumber
ProfileCode - Text
Please could you advise if I am approaching this in the correct manner and what I should do to counteract the issues I've mentioned above?
My intention is that I can store the assembly information via a form the user fills in to select the various components and the part of the assembly they are. I also need to use this information to allow me to "convert" stock from components to assemblies so that stock is downdated as an assembly is manufactured and updated with the completed assembly.
Many thanks,
Dan