I am not sure why this is not working, but my objective is to simply evaluate the following:
If Me.Ncb.Value (the value from my userform) is present then
MyIMPBucket = Me.Ncb.Value
MYHCDBucket = Me.Ncb.Value
Thanks for the help!
If Me.Ncb.Value (the value from my userform) is present then
MyIMPBucket = Me.Ncb.Value
MYHCDBucket = Me.Ncb.Value
Code:
Private Sub Ncb_Change()
If (Me.Ncb.Value) Like "*" Then
MyIMPBucket = Me.Ncb.Value
If MyIMPBucket = "Actual charges" Then
MyIMPBucket = "ImpActl"
If MyIMPBucket = "B1" Then
MyIMPBucket = "Implants B1 Dollars"
If MyIMPBucket = "B2" Then
MyIMPBucket = "Implants B2 Dollars"
End If
End If
End If
End If
If (Me.Ncb.Value) Like "*" Then
MyHCDBucket = Me.Ncb.Value
If MyHCDBucket = "Actual charges" Then
MyHCDBucket = "DActl"
If MyHCDBucket = "B1" Then
MyHCDBucket = "Drugs B1 Dollars"
If MyHCDBucket = "B2" Then
MyHCDBucket = "Drugs B2 Dollars"
End If
End If
End If
End If
End Sub
Thanks for the help!