I'm trying to stop a couple fields from being able to tab to based on other field value in a form. I have the following code but this didnt work.
I then tried this. but it still allowed the tab stops. How can I stop it?
Code:
Private Sub Step42_GotFocus()
If Me.Step42.Locked = True Then
Me.step43.SetFocus
End If
End Sub
I then tried this. but it still allowed the tab stops. How can I stop it?
Code:
Me.Step42.Locked = True
Me.dat18.Locked = True
Me.dat19.Locked = True
Me.dat20.Locked = True
Me.Step42.TabStop = False
Me.dat18.TabStop = False
Me.dat19.TabStop = False
Me.dat20.TabStop = False