Hi folks, thanks for looking. I have a database that takes down order details.
Each customer has there own priceid in the price table, this is due to an opertaional requirment. A group or line discount field is no good.
I Since creating my Price table I cannot acces the add order details subform to choose my products, and there prices.
I set the AddOderDetailsS ubform's Rowsource for the Products combo to be::p
SELECT DISTINCTROW Products.Produc tID, Price.Price
FROM Products INNER JOIN Price ON Products.Produc tID = Price.ProductID
WHERE (((Price.Custom erID)=[Forms]![Add an Order and details]![CustomerID]))
ORDER BY Products.Produc tName;
In the After Update event of the control I put
:eek:
Me.Price = Me.ProductID.Co lumn(2)
Im now getting an error where the Add order details subform is not working, I keep getting an sql error saying value after end.
I know nothing of sql/vb, I checked all the forms in the VB window but could not find any data after the end sub.
I am in a real pickle here guys and will be on here all night till I sort it.
I look forward to hearing from you.
Regards
Mark
Each customer has there own priceid in the price table, this is due to an opertaional requirment. A group or line discount field is no good.
I Since creating my Price table I cannot acces the add order details subform to choose my products, and there prices.
I set the AddOderDetailsS ubform's Rowsource for the Products combo to be::p
SELECT DISTINCTROW Products.Produc tID, Price.Price
FROM Products INNER JOIN Price ON Products.Produc tID = Price.ProductID
WHERE (((Price.Custom erID)=[Forms]![Add an Order and details]![CustomerID]))
ORDER BY Products.Produc tName;
In the After Update event of the control I put
:eek:
Me.Price = Me.ProductID.Co lumn(2)
Im now getting an error where the Add order details subform is not working, I keep getting an sql error saying value after end.
I know nothing of sql/vb, I checked all the forms in the VB window but could not find any data after the end sub.
I am in a real pickle here guys and will be on here all night till I sort it.
I look forward to hearing from you.
Regards
Mark
Comment