- I have a database that tracks work orders for a company. Each work order can have many skus of parts that need repaired. For instance, one work order can have a sku for door handle and one for electrical switch indicating both need to be repaired in a particular office. But there is a different approval code for each sku within the same work order. The door handle sku might have an approval code of 'cosmetic' approval while the light switch might have one called 'safety' code approval. Also, sometimes one individual sku can have two approval codes such as when a light switch sku is approved both for cosmetic and for safety reasons. Though most of the time they have only one. What is the best way to display this for input on a form when entering a new work order? There is one to many relationship between work orders and skus and there is a one to many relationship between skus and approval codes although most will have only one approval code. How should I display this on a form? Should I change the tables below to have a different field for sku1, then sku2, etc? Would each sku have a respective approval codes such as approval codesfor1 and approvalcodesfor2 referring respectively to sku1 and sku2? Any ideas? Maybe a subform that punches out to list the skus and their respective approval codes within each work order record? Any help is much appreciated!
Table WorkOrder
WorkOrderID WorkOrderName Skus ApprovalCode 1 IT Closet Repair Door Handle Cosmetic 1 IT Closet Repair Light Switch Safety 2 Bathroom Socket Safety
SKU ID SKUs 1 Door Handle 2 Light Switch 3 Socket
ApprovalCodeID ApprovalCode 1 Cosmetic 2 Safety 3 LegalRequirement