I tried setting up a relationship although I don't know if this is how I'm meant to do it:
Category column settings:
Description column settings:
Linked to the table that contains different type of furniture, "Furniture":
Furniture design:
I do not think this can be done using only tables — you'll have to create a form that will limit the selection in the descriptions listbox based on the category.
Also, there are a number of problems with your data structure:
Furniture
s can have the same CATEGORY
. This means that CATEGORY
cannot be the primary key -- a uniquely identifying piece of data -- for Furniture
. I would suggest adding a Long number column called FurnitureID
. If you make this an Autonumber column, every new record will get a new number by default; otherwise you'll have to insert the number by hand. Stock
of the same type (or Long if the FurnitureID
is an Autonumber ). These two columns should be related in the Relationships window. The relationship means that every 1 Stock
record must have a related Furniture
record with the same data in both records. CATEGORY
and DESCRIPTION
fields between the Stock
and Furniture
tables. This means no duplicate data, and no potential conflicts. 1. Depending on how the column is defined, it might be possible to have no data in the foreign key column in the Stock
record; but this is relatively uncommon
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.