I have a combo PayBy (TabIndex=4)a textbox AccountNo (TabIndex=5) and a combo Currency (TabIndex=6).
All are Locked=No, TabStop=Yes.
No matter what I select in the PayBy, when I press the Tab key, it always go to Currency.Code:Private Sub PayBy_LostFocus() If Me.PayBy="Bank" Then Me.AccountNo.Enabled=True Else Me.AccountNo.Enabled=False End If End Sub
However, the AccountNo will be enabled or disabled according to above coding.