A
Asif Rehman
Hello
I have an error I am trying to change the the control
sorce of RRP (Recommend Retail Price) depending on where
the customer is based. I have tried inputting the code
into AfterUpdate event but nothing seems to happen, so I
inputted to code in to RRP_click and I get an error can't
find the form products.
The spelling is correct and when the customer is in the
price band warehouse no error occurs and nothing happens
in the RRP field.
I would like this to be automated so the user dosn't have
to click on the field (which is in a datasheet).
Private Sub RRP_Click()
If Forms!Orders![PriceBand].ControlSource
= "warehouse" Then
[RRP].ControlSource = Forms!Products!
[UnitPriceWarehouse].ControlSource
End If
If Forms!Orders![PriceBand] = "local" Then
[RRP].ControlSource = Forms!Products!
[UnitPriceLocal].ControlSource
End If
If Forms!Orders![PriceBand] = "national" Then
[RRP].ControlSource = Forms!Products!
[UnitPriceNational].ControlSource
End If
End Sub
I Hope you have understood my question and again any help
will be much appreciated.
Kindest Regards
Asif
I have an error I am trying to change the the control
sorce of RRP (Recommend Retail Price) depending on where
the customer is based. I have tried inputting the code
into AfterUpdate event but nothing seems to happen, so I
inputted to code in to RRP_click and I get an error can't
find the form products.
The spelling is correct and when the customer is in the
price band warehouse no error occurs and nothing happens
in the RRP field.
I would like this to be automated so the user dosn't have
to click on the field (which is in a datasheet).
Private Sub RRP_Click()
If Forms!Orders![PriceBand].ControlSource
= "warehouse" Then
[RRP].ControlSource = Forms!Products!
[UnitPriceWarehouse].ControlSource
End If
If Forms!Orders![PriceBand] = "local" Then
[RRP].ControlSource = Forms!Products!
[UnitPriceLocal].ControlSource
End If
If Forms!Orders![PriceBand] = "national" Then
[RRP].ControlSource = Forms!Products!
[UnitPriceNational].ControlSource
End If
End Sub
I Hope you have understood my question and again any help
will be much appreciated.
Kindest Regards
Asif