stillwillyboy
Technical User
We have three branches and each Part can be, but isn’t always, in each branch. A Part number can not be used by more than one customer.
I have the following tables and fields:
TblCustomers
CustomerID (PK)
Name, Address, etc.
TblParts
PartID (PK)
CustomerID (PK)
BranchID (PK)
Description, Category, etc.
TblOrders
OrderID (PK)
PartID
CustomerID
BranchID
TblOrdersDetail
PartID (PK)
OrderDate
ShippingTicket, etc.
One part can have many orders, but at the same time, one order may have more than one part (i.e. a specific part plus UPS, postage, etc. (UPS and postage are set up as parts with no price. The amount of UPS, postage is manually entered at the time of ticket entry.)
Whenever I try to establish a relationship b/w the Parts and Orders table using the PartID field, the Edit Relationship box shows the Parts table as primary and the Orders as secondary (which is correct). But it also tells me that the relationship is indeterminate. The one-to-many should be for the Parts to the Orders.
When I try to establish a relationship b/w the Parts and OrdersDetail tables, using the PartID field, the Edit Relationship box shows the OrdersDetail table as primary (which is not correct) but it tells me that there is a one-to-many relationship.
When I try to establish a relationship b/w the Orders and OrdersDetail tables using the PartID field, the Edit relationship box tells me that the OrdersDetail table is primary, which I do not believe it should be because one order can have a number of lines of detail.
I would like to have Parts to Orders with Parts the primary table and a one-to-many relationship.
I would like to have Orders to OrdersDetail with Orders and the primary table and a one-to-many relationship.
TIA.
Bill