I have an “ItemMaster” table with 2 fields:
Item_ID - Integer, AutoValue, Primary Key.
Item_Name - VARCHAR, Entry req’d Yes.
Second table “Types” with 3 fields:
Type_ID - Integer, AutoValue, PrimaryKey.
Type_Abbrev - Text (fix), Entry req’d Yes.
Type_Name - VARCHAR, Entry req’d Yes.
Intermediate table (trying to follow Base Handbook Media example) “rel_Item_Types” with 2 fields:
Item_ID - Integer, Entry req’d Yes.
Type_ID - Integer, Entry req’d Yes.
In the Tools/Relations window I have set the ItemMaster/Item_ID relationship to the rel_Items_Type/Item_ID as a 1:n. I also set the Types/Type_ID relationship to the rel_Items_Type/Type_ID as a 1:n.
Situation: For each ItemMaster record, there will be 1 to many Types records.
-
I am unable to set both fields in the “rel_Item_Types” table as PrimaryKeys (setting one field is possible through the GUI). The 2 fields together WOULD be a unique key.
-
I am unable to manually enter any records in the “rel_Item_Types” table (I think because there is no PrimaryKey field, but not sure).
I am new to LO Base - last database system I used was dBase/Clipper/FoxPro MANY years ago!
I can provide a simple odb file example if that would help.
Thank you in advance!