D
Darwood
How can I automatically fill in the CustomerID field on my Orders Subform?
The Orders Subform is linked and loaded by pressing a command button on the
Customers Form. The Orders Subform itself contains an Order Details subform
that is on the same form. Interestingly the Order Details, OrderID (foreign
key) field is automatically populated with the related OrderID and I would
like the same effect for the CustomerID (foreign key) field on the Orders
Subform.
All forms have been generated by wizards.
Tables are as below. Primary and Foreign Key in parenthesis:
Customers (CustomerID)
Orders (OrderID, CustomerID)
OrderDetails (OrderDetailsID, OrderID)
Many thanks,
The Orders Subform is linked and loaded by pressing a command button on the
Customers Form. The Orders Subform itself contains an Order Details subform
that is on the same form. Interestingly the Order Details, OrderID (foreign
key) field is automatically populated with the related OrderID and I would
like the same effect for the CustomerID (foreign key) field on the Orders
Subform.
All forms have been generated by wizards.
Tables are as below. Primary and Foreign Key in parenthesis:
Customers (CustomerID)
Orders (OrderID, CustomerID)
OrderDetails (OrderDetailsID, OrderID)
Many thanks,