PrettyMess
Board Regular
- Joined
- Feb 10, 2015
- Messages
- 66
Is there anyway to grey out specific boxes using the following code however I only want to use two parameters (Cancellation List and Ported) all other options the users select from the drop down I would like them to have to fill out all information.
I can get it to grey out the relevant boxes but it doesn't apply that I only want this done for Cancellation List.
I know I could do this for each of the options in the drop down but I have close to 50 options so I don't really want to use that method.
Any help would be greatly appreciated
I can get it to grey out the relevant boxes but it doesn't apply that I only want this done for Cancellation List.
I know I could do this for each of the options in the drop down but I have close to 50 options so I don't really want to use that method.
Code:
Private Sub Form_BeforeUpdate(Cancel As Integer)
Select Case Me.Combo128.Value
Case Is = "Cancellation List"
Me.MobileNumber.Enabled = False
Me.Mobex.Enabled = False
Me.UserName.Enabled = False
Me.Text130.Enabled = False
Me.Text126.Enabled = False
Me.Check123.Enabled = False
Me.Text9.Enabled = False
Me.Text49.Enabled = False
Me.Check134.Enabled = False
Me.Check138.Enabled = False
End Select
End Sub
Private Sub TypeList_AfterUpdate()
Select Case Me.Combo128.Value
Case Is = "Cancellation List"
Me.MobileNumber.Enabled = False
Me.Mobex.Enabled = False
Me.UserName.Enabled = False
Me.Text130.Enabled = False
Me.Text126.Enabled = False
Me.Check123.Enabled = False
Me.Text9.Enabled = False
Me.Text49.Enabled = False
Me.Check134.Enabled = False
Me.Check138.Enabled = False
End Select
End Sub
Any help would be greatly appreciated