Hi,
I have a set up an OrderDetailsExt ended subform on an Order Form. I have used OrderDetailsExt ended Query, these were both taken from the Northwind Database. On productID I have adjusted the VBA in the after update. But I am still getting an error when I add a new product to the order.
The GetListPrice is being highlighted in blue and I can not see how this is related to anything.
Any Help will be appreciated
warm wishes
Martin
I have a set up an OrderDetailsExt ended subform on an Order Form. I have used OrderDetailsExt ended Query, these were both taken from the Northwind Database. On productID I have adjusted the VBA in the after update. But I am still getting an error when I add a new product to the order.
Code:
Private Sub CustPrice_AfterUpdate()
Private Sub ProductID_AfterUpdate()
'Initialize price and discount for each product change
If Not IsNull(Me![ProductID]) Then
Me![Quantity] = 0
Me.Quantity.Locked = False
Me![CustPrice] = GetListPrice(Me![ProductID])
Me![Discount] = 0
End Sub
Any Help will be appreciated
warm wishes
Martin
Comment