Hopefully someone can point me in the right direction.
I have a very simple db for customers and sales.
Tables are as follows
Customers: CustomerID, Name, Address etc
Products: ProductID, Model Number, Unit Price, Description, Cost Price
Orders: OrderID, CustomerID, Order Date, Delivery Charge, Delivery Date
Order Details: OrderDetailID, OrderID, ProductID, Quantity, Unit Price,
Discount.
I have an order entry form containing customer name and address with a subform based on a query containing OrderID (from OrderDetials table), ProductID (Orderdetails table), Description (products table), Quantity (orderdetails table), Unit Price (order details table), Discount (order details table), total (calculated field based on quantity * Unit price - Discount.
The problem I am encountering is that on the subform when I click productID box a dropdown appears with all of the models available, I choose any one of them and the product description appears (perfect) but the Unit price is blank. Now I can change the query to get the unit price from the products table but then it wont appear in the order details table, plus I don't want the user to be able to change the price on the products table.
I have seen many examples of this working correctly but for some reason I cannot make it happen on my db...rather frustrating.
Thanks for any help or guidance. Kim
I have a very simple db for customers and sales.
Tables are as follows
Customers: CustomerID, Name, Address etc
Products: ProductID, Model Number, Unit Price, Description, Cost Price
Orders: OrderID, CustomerID, Order Date, Delivery Charge, Delivery Date
Order Details: OrderDetailID, OrderID, ProductID, Quantity, Unit Price,
Discount.
I have an order entry form containing customer name and address with a subform based on a query containing OrderID (from OrderDetials table), ProductID (Orderdetails table), Description (products table), Quantity (orderdetails table), Unit Price (order details table), Discount (order details table), total (calculated field based on quantity * Unit price - Discount.
The problem I am encountering is that on the subform when I click productID box a dropdown appears with all of the models available, I choose any one of them and the product description appears (perfect) but the Unit price is blank. Now I can change the query to get the unit price from the products table but then it wont appear in the order details table, plus I don't want the user to be able to change the price on the products table.
I have seen many examples of this working correctly but for some reason I cannot make it happen on my db...rather frustrating.
Thanks for any help or guidance. Kim