Hi! I am trying to lock a certain field in a form when a specific option is given in another field.
For normal variables this works with the following code:
Private Sub PREG_AfterUpdate()
Select Case Me.PREG
Case "1"
Me.GEST.Enabled = True
Case Else
Me.GEST.Enabled = False
Me.GEST.Value= Null
End Select
End Sub
However, when one of the variables stores multiple values this code doesn't work.
Anyone knows how to fix this?