Hello,
I am having trouble with designing an order form for this database because of the way that the tables are designed.
Situation: There are tables "Parts" and "Part details" and "Vendors". I have created 2 one-to-many relationships here, with each Part description having multiple vendors. I have a composite key in part details so that there are no two part descriptions with the same vendor. "Part details" have the part numbers, vendors, prices, etc.
For order tables, I have "orders" and "order details".
Orders:
Order No. (primary key)
Company (related to customer table)
Order date
Employee (person who ordered)
Subtotal (calculated)
Taxes
Shipping
Total (calculated)
Order details:
Order No (from orders)
Order Detail (autonumber)
Qty.
Part description (??)
Part number (??)
Vendor (??) (??) as in im not sure where to pull these from (tbl or qry?)
Price (??)
Ext price
GOAL: I am trying to create an order form where the main form is linked to the "order query", with a subform linked to a "order detail query" so that I can make an order. The user has to be able to start an order on the main form, enter in the customer information, then start putting in what needs to be ordered. They should select the part description that they want from a combo box, which should make the part number combo box update to show all of the order options for that specific part description. Once the part number has been selected it will fill in the price and vendor associated with the part number.
PROBLEM: I cant figure it out.
Sorry for the length and thanks in advance.
I am having trouble with designing an order form for this database because of the way that the tables are designed.
Situation: There are tables "Parts" and "Part details" and "Vendors". I have created 2 one-to-many relationships here, with each Part description having multiple vendors. I have a composite key in part details so that there are no two part descriptions with the same vendor. "Part details" have the part numbers, vendors, prices, etc.
For order tables, I have "orders" and "order details".
Orders:
Order No. (primary key)
Company (related to customer table)
Order date
Employee (person who ordered)
Subtotal (calculated)
Taxes
Shipping
Total (calculated)
Order details:
Order No (from orders)
Order Detail (autonumber)
Qty.
Part description (??)
Part number (??)
Vendor (??) (??) as in im not sure where to pull these from (tbl or qry?)
Price (??)
Ext price
GOAL: I am trying to create an order form where the main form is linked to the "order query", with a subform linked to a "order detail query" so that I can make an order. The user has to be able to start an order on the main form, enter in the customer information, then start putting in what needs to be ordered. They should select the part description that they want from a combo box, which should make the part number combo box update to show all of the order options for that specific part description. Once the part number has been selected it will fill in the price and vendor associated with the part number.
PROBLEM: I cant figure it out.
Sorry for the length and thanks in advance.