G
Guest
Hi i have a many to many relationship between products and shades, my
mainform is based on a query where i can enter data into the tables i need to
enter in the product name and the shade name here are my table structures
(See blow)
I want to have a sub form that displays all the shades for a given product,
for example if product 1 has 2 shades red and blue it will display this when
ever i show product 1 on the form i can add in 2 of any colours but product 2
could have red and blue as its shades also.
My problem is with displaying the shades for the product any help would be
great thanks
tblProducts
ProductLineID PK autonumber
strProductName
tbl Shades
ShadesLineID PK autonumber
strShadesName
tbl ProductShades
ProductShadesID PK autonumber
intProductID FK to tblProducts.ProductLineID
intShadesID FK to tblShades.ShadesLineID
mainform is based on a query where i can enter data into the tables i need to
enter in the product name and the shade name here are my table structures
(See blow)
I want to have a sub form that displays all the shades for a given product,
for example if product 1 has 2 shades red and blue it will display this when
ever i show product 1 on the form i can add in 2 of any colours but product 2
could have red and blue as its shades also.
My problem is with displaying the shades for the product any help would be
great thanks
tblProducts
ProductLineID PK autonumber
strProductName
tbl Shades
ShadesLineID PK autonumber
strShadesName
tbl ProductShades
ProductShadesID PK autonumber
intProductID FK to tblProducts.ProductLineID
intShadesID FK to tblShades.ShadesLineID