Hi friends could you have look at on this issue.
when run it gives error sub or function not defined. Adopted from nothwind databse.
Private Sub ServiceID_AfterUpdate()
'Initialize price and discount for each product change
If Not IsNull(Me![ServiceID]) Then
Me![Quantity] = 0
Me.Quantity.Locked = False
Me![Unit Price] = GetStandardPrice(Me![ServiceID])
'Me![Discount] = 0
'Me![Status ID] = None_OrderItemStatus
'Empty Service records mean user wants to delete line item
Else
'eh.TryToRunCommand acCmdDeleteRecord
End If
End Sub
Foxtt
when run it gives error sub or function not defined. Adopted from nothwind databse.
Private Sub ServiceID_AfterUpdate()
'Initialize price and discount for each product change
If Not IsNull(Me![ServiceID]) Then
Me![Quantity] = 0
Me.Quantity.Locked = False
Me![Unit Price] = GetStandardPrice(Me![ServiceID])
'Me![Discount] = 0
'Me![Status ID] = None_OrderItemStatus
'Empty Service records mean user wants to delete line item
Else
'eh.TryToRunCommand acCmdDeleteRecord
End If
End Sub
Foxtt