Zydeceltico
Registered User.
- Local time
- Yesterday, 20:41
- Joined
- Dec 5, 2017
- Messages
- 843
I just noticed that tblAssemblyItems is not correctly defined. There MUST be a unique primary key. This is a combosite key and will be Assembly_FK + Part_FK. To do this, open the table in design view and using shift-click, select both fields. Then press the key button. As it stands, you will get an error because there are duplicates so you will need to fix the duplicates first.
Sorry, I should have clarified the PK when I made the suggestion.
Thanks Pat. I know I have said in the past that any assembly will always only be two parts, but as I am creating a unique composite key across two fields I immediately wonder how I will handle the day when we do in fact have an assembly that has three parts and my unique composite key is only across two fields.