sniffingvixen
Technical User
Tables[li]ProductDetails: Primary table with a text-based primary key (ProjectID).[/li]
[li]pdProduceItems: Secondary table with an autonumber-based composite primary key (ProjectID + ProduceItemID).[/li]
[li]pdOnions: Tertiary table with an autonumber-based composite primary key (ProjectID + ProduceItemID + OnionID)[/li]
Desired Relationships
[li](one)ProductDetails.ProjectID ---> (many)pdProduceItems.ProjectID[/li]
[li](one)ProductDetails.ProjectID ---> (many)pdOnions.ProjectID[/li]
[li](one)pdProduceItems.ProduceItemID ---> (many)pdOnions.ProduceItemID[/li]
Current Implementation
[li](one)ProductDetails.ProjectID ---> (many)pdProduceItems.ProjectID[/li]
[li](one)pdProduceItems.ProjectID & pdProduceItems.ProduceItemID ---> (many)pdOnions.ProjectID & pdOnions.ProduceItemID[/li]
[ol]Questions
[li]Is this acceptable practice?[/li]
[li]Can I automatically create a new record in pdOnions when pdProduceItems.ProduceItemType is changed to "Onion"?[/li]
[li]If so, can I expand the same code to create various numbers of new records according to the value of pdProduceItems.ItemOptionsAvailable?[/li]
[li]Or, can a field like pdOnions.OnionOptionsAvailable do the job more effectively?[/li]
[li]Can similar coding be used to limit the number of records that can be created?[/li]
[/ol]
I know these are all "yes or no" questions, but, if anyone can give me a clue about the "how" and "why" too, I would really I appreciate it.
Thanks,
j
[li]pdProduceItems: Secondary table with an autonumber-based composite primary key (ProjectID + ProduceItemID).[/li]
[li]pdOnions: Tertiary table with an autonumber-based composite primary key (ProjectID + ProduceItemID + OnionID)[/li]
Desired Relationships
[li](one)ProductDetails.ProjectID ---> (many)pdProduceItems.ProjectID[/li]
[li](one)ProductDetails.ProjectID ---> (many)pdOnions.ProjectID[/li]
[li](one)pdProduceItems.ProduceItemID ---> (many)pdOnions.ProduceItemID[/li]
Current Implementation
[li](one)ProductDetails.ProjectID ---> (many)pdProduceItems.ProjectID[/li]
[li](one)pdProduceItems.ProjectID & pdProduceItems.ProduceItemID ---> (many)pdOnions.ProjectID & pdOnions.ProduceItemID[/li]
[ol]Questions
[li]Is this acceptable practice?[/li]
[li]Can I automatically create a new record in pdOnions when pdProduceItems.ProduceItemType is changed to "Onion"?[/li]
[li]If so, can I expand the same code to create various numbers of new records according to the value of pdProduceItems.ItemOptionsAvailable?[/li]
[li]Or, can a field like pdOnions.OnionOptionsAvailable do the job more effectively?[/li]
[li]Can similar coding be used to limit the number of records that can be created?[/li]
[/ol]
I know these are all "yes or no" questions, but, if anyone can give me a clue about the "how" and "why" too, I would really I appreciate it.
Thanks,
j