G
Guest
Hi
I have a cost form where the work centre rate changes depending on type of
costing ie pharma or toiletry . the form has drop down box for type selection
and another for workcentre. i have wriiten following code
Private Sub TYPE_AfterUpdate()
If Me.TYPE = "PHARMA" Then
Me.Rateperhour= "76.3387"
Else
Me.rateperhour = "48.0016"
End If
End Sub
which works but as extracting rates from mrp system I have created query
with rates in it is it possible to assign the value from query "process
vesssels" field RunTimeRate1 for pharma RunTimeRate2 for toiletries so if
rats change do not have to manually update code
Thanks
tina
I have a cost form where the work centre rate changes depending on type of
costing ie pharma or toiletry . the form has drop down box for type selection
and another for workcentre. i have wriiten following code
Private Sub TYPE_AfterUpdate()
If Me.TYPE = "PHARMA" Then
Me.Rateperhour= "76.3387"
Else
Me.rateperhour = "48.0016"
End If
End Sub
which works but as extracting rates from mrp system I have created query
with rates in it is it possible to assign the value from query "process
vesssels" field RunTimeRate1 for pharma RunTimeRate2 for toiletries so if
rats change do not have to manually update code
Thanks
tina