so i'm trying to create a relationship and it's not working! i have the following tables
[vendor]
*ven_id
prod_id
[product]
*prod_id
ven_id
[ven_contact]
*ven_id
ven_name
ven_contact
ven_add
[prod_desc] NO PK
prod_id
prod_desc
[prod_cost] NO PK
prod_cost
prod_price
Ok, so prod_desc and prod_cost table have no primary keys because for every product there should be only one description and one cost. the primary key for vendor is ven_id and the primary key for product is prod_id. Every vendor can have one-to-many products, but every product should have only one vendor. It seems to look correct on my relationship table but when I go to make my forms I create them seperately.
The first form [vendor form] has ven_id, and all of the ven_contact information
The second form [product form] hsa the prod_id and ven_id from the [product] table, plus the prod_desc and prod_cost (excluding the respective prod_id of those tables) So what I do next is I put the [product form] as a subform into the [vendor form]
Well everything seems to be working smoothly but when I close the form and open it back up, I can see all of my vendors, but the products do not show up in the product table, it doesn't even show that I have entered a product for a vendor, but in the product table there is a whole list of the stuff I entered.
Also, I create a query based on ven_id from the vendor table and prod_id from the product table plus the prod_desc and prod_cost, but when I go to pull things up the query doesn't return anything if any of the less important info is missing. For example of I do not include a prod_desc or a prod_cost then the query returns nothing back. I'm not sure what's going on, but any help would be greatly appreciated
Ms. Peppa
[vendor]
*ven_id
prod_id
[product]
*prod_id
ven_id
[ven_contact]
*ven_id
ven_name
ven_contact
ven_add
[prod_desc] NO PK
prod_id
prod_desc
[prod_cost] NO PK
prod_cost
prod_price
Ok, so prod_desc and prod_cost table have no primary keys because for every product there should be only one description and one cost. the primary key for vendor is ven_id and the primary key for product is prod_id. Every vendor can have one-to-many products, but every product should have only one vendor. It seems to look correct on my relationship table but when I go to make my forms I create them seperately.
The first form [vendor form] has ven_id, and all of the ven_contact information
The second form [product form] hsa the prod_id and ven_id from the [product] table, plus the prod_desc and prod_cost (excluding the respective prod_id of those tables) So what I do next is I put the [product form] as a subform into the [vendor form]
Well everything seems to be working smoothly but when I close the form and open it back up, I can see all of my vendors, but the products do not show up in the product table, it doesn't even show that I have entered a product for a vendor, but in the product table there is a whole list of the stuff I entered.
Also, I create a query based on ven_id from the vendor table and prod_id from the product table plus the prod_desc and prod_cost, but when I go to pull things up the query doesn't return anything if any of the less important info is missing. For example of I do not include a prod_desc or a prod_cost then the query returns nothing back. I'm not sure what's going on, but any help would be greatly appreciated
Ms. Peppa