Order Details Subform issue

Joined
Mar 27, 2007
Messages
2
Reaction score
0
Hi folks, thanks for looking.
My database takes down order details. But since I created a new price table, I cant get my add new order details subform to work.

I set the Add Oder Details Subform's, Rowsource for the Products combo to be:

SELECT DISTINCTROW Products.ProductID, Price.Price
FROM Products INNER JOIN Price ON Products.ProductID = Price.ProductID
WHERE (((Price.CustomerID)=[Forms]![Add an Order and details]![CustomerID]))
ORDER BY Products.ProductName;

In the After Update event of the control I put

Me.Price = Me.ProductID.Column(1)
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.

I look forward to hearing from you.

Regards
Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top