I’m in the process of designing a database that will track documents (e.g. current revision number, approval status, and distribution to internal employees, supplier personnel, and customer personnel). The purpose is to be able to track what documents are required to be sent to what personnel so that when a document is revised, we will know who needs to receive the next revision.
My Tables are: Documents, Suppliers, Supplier Personnel, Customers, Customer Personnel, Internal Employees, Internal Distribution, Customer Distribution, and Supplier Distribution.
I envision having a main form with the document information, and subforms for distribution to internal employees, supplier personnel, and customer personnel.
However, after looking at my tables, to avoid data duplication and improve efficiency, it makes sense to just have one table for distribution. A column in the table could be distribution type and the values could be limited to Internal, Supplier, and Customer. The reason I orginally designed with three is because I knew the lookup values in the table would be directly linked to their respective tables (e.g. Customer distribution table would lookup Customer names/email addresses from the Customer Personnel Table).
My question is how to design the form/table so that a combo box on the subform will look up the appropriate columns in a table based on the distribution type in the Distribution Table. For example, if the document goes to supplier personnel (distribution type= "Supplier"), I would want a combo box on the subform to display only supplier personnel name and email addresses for me to select. Similarly, if I want the document to go to internal personnel (distribution type = "Internal), I would want the combo box to display internal employee names and email addresses. A document could have any combination of distribution (e.g. maybe one document is required to be sent to 3 internal employees, 1 supplier contact, and 2 customer contacts whereas another document might just have to be distributed to 5 internal employees).
I also have been using the lookup wizard to establish relationships between tables. Is this ok? I read where this could cause some problems but I don't know how else to logically create the relationships with drop-downs.