Ok so I have a database with four tables: [Business] [Purchase order] [Product] [Vendor]
i'm having huge problems getting my relationships to work!
Ok so here is the deal:
[Business]
busn_id*
busn_name
purch_id
[Purchase Order]
purch_id
prod_id*
ven_id*
[Vendor]
ven_id*
ven_name
ven_add
[Product]
prod_id*
prod_cost
prod_price
Ok..so a business can have one to many purchase orders. A purchase order can have one to many products, and a vendor can have one to many purchase orders. Does that make sense? Well that relationship ONLY works when I do not make prod_id in the [Product table] the primary key. But i know that every table has to have a primary key.
Also, when I go to make my form up, what should I use as the main form? should it be based on purchase order? since it is the one table that connects all of the databases? Whenever I do that I always get an error message that says that there is a null value somewhere, but all of my data is filled in!
Can anyone give me some tips on how to get this to work? It would be greaatly appreciated! Thanks
i'm having huge problems getting my relationships to work!
Ok so here is the deal:
[Business]
busn_id*
busn_name
purch_id
[Purchase Order]
purch_id
prod_id*
ven_id*
[Vendor]
ven_id*
ven_name
ven_add
[Product]
prod_id*
prod_cost
prod_price
Ok..so a business can have one to many purchase orders. A purchase order can have one to many products, and a vendor can have one to many purchase orders. Does that make sense? Well that relationship ONLY works when I do not make prod_id in the [Product table] the primary key. But i know that every table has to have a primary key.
Also, when I go to make my form up, what should I use as the main form? should it be based on purchase order? since it is the one table that connects all of the databases? Whenever I do that I always get an error message that says that there is a null value somewhere, but all of my data is filled in!
Can anyone give me some tips on how to get this to work? It would be greaatly appreciated! Thanks