I made a blank form with Record Source set to OrderDetails.
I need to add two comboboxes.
First I set Control Source as UPC; Raw Source as SELECT DISTINCTROW Products.prodName, Products.UPC FROM Products; Bound Column as 2. This works. This allows me to set value of UPC when adding a new record in OrderDetails table using form element (in this case combobox).
Secondly I want to add custID and orderDate as part of new record in OrderDetails table. But I can't set more than one Control Source and in Orders table I've set a composite primary key (custID and orderDate). How to edit the same form to extract unique custID, orderDate from Orders table and save to OrderDetails along with UPC?
Thx.
I'm thinking adding orderID to Orders table, since every custID+orderDate entry in that table is already unique.