![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
I think you need a couple extra join tables in there and I don't think you can get everything done on one layout. Just to clarify, a Model doesn't stand by itself, it needs a Variation to contain PartLoc info, right? In other words a Variation isnt varying from a Model, but from the other Variations? Let me summarize what I think your db has: A Model table. Each Model record contains an id for the Model, probably along with a description. The Model table is related to the Variations table. Each Variations record has a Model id (relating to the the Model) and its own unique Variation ID, along with a designation fields like 001 and New York. And presumably a calc field of the cost of the materials. The Variations table is related to the PartLocations table with the Variations id. The PartLocations table contains the fields designating number (1, 2 or 3), BodyParts, Materials id, and MaterialsName. PartLocations relates to Materials via MaterialsID. I'd recommend one more table: Models_PartLoc_Join. Since you want any change to a PartLoc to affect all Models, create this table that will be a reference for your Variations. When you change your Models_PartLoc_Join table, you can easily script an update for all the Variations. For data entry, a layout based on the highest table in a hierarchy is usually best. For printing, it's the lowest element. So you base you layout on Models, have a portal to Variations. You create another relationship from Models to PartLocs. In that include a global field from Models to the PartLoc variations id. When a portal row in the Models-Variations portal is selected, you script the Models global to be set to that Variations id, bring up the PartLoc records in the other portal. Sounds like you've got most of it worked out aside from a few details. It helps to know what the db is supposed to accomplish. Knowing that gives others the ability to answer questions you're not even asking (but maybe should be). G |
![]() |
| Thread Tools | |
| Display Modes | |
| |