J
jwr
Following is the SQL View of my subform. This is a subform within my Orders
form.
It contains: Line Item, ProductID, Product Description, Order Codes, Serial
Number, Quantity, and Unit Price. I can change the unit price and it does
not change my master Product Form. However, if I change order codes, they
are changed on my master Product Form.
How do I create a subform that will pull the product information from the
product form, BUT allow change on each customer's order IF it is not an
exact match with the master file and not change the master file??
I hope I explained myself. I don't quite know how to word this.
Thanks in advance,
JR
SELECT DISTINCTROW [Order Details].OrderDetailID, [Order Details].OrderID,
[Order Details].LineItem, [Order Details].ProductID, [Order
Details].SerialNum, [Order Details].Quantity, [Order Details].UnitPrice,
[Order Details].Discount, Round([Quantity]*[Order
Details].UnitPrice*(1-[Discount]),2) AS [Line Total], Products.ProductCode,
[HandlingPct]*Round([Quantity]*[Order Details].UnitPrice*(1-[Discount]),2)
AS HandlingChg, [Order Details].Notes
FROM Products INNER JOIN [Order Details] ON Products.ProductID = [Order
Details].ProductID
ORDER BY [Order Details].LineItem;
form.
It contains: Line Item, ProductID, Product Description, Order Codes, Serial
Number, Quantity, and Unit Price. I can change the unit price and it does
not change my master Product Form. However, if I change order codes, they
are changed on my master Product Form.
How do I create a subform that will pull the product information from the
product form, BUT allow change on each customer's order IF it is not an
exact match with the master file and not change the master file??
I hope I explained myself. I don't quite know how to word this.
Thanks in advance,
JR
SELECT DISTINCTROW [Order Details].OrderDetailID, [Order Details].OrderID,
[Order Details].LineItem, [Order Details].ProductID, [Order
Details].SerialNum, [Order Details].Quantity, [Order Details].UnitPrice,
[Order Details].Discount, Round([Quantity]*[Order
Details].UnitPrice*(1-[Discount]),2) AS [Line Total], Products.ProductCode,
[HandlingPct]*Round([Quantity]*[Order Details].UnitPrice*(1-[Discount]),2)
AS HandlingChg, [Order Details].Notes
FROM Products INNER JOIN [Order Details] ON Products.ProductID = [Order
Details].ProductID
ORDER BY [Order Details].LineItem;