Hi
I have a tab control form and the below code, when clicking a cmd button, enables controls on a form when i want to change records.
Is there a way to disable those controls when I click on another tab? Using the losefocus command. However I can only see Onclick or mousemove etc
Thx for ur help
Darin
I have a tab control form and the below code, when clicking a cmd button, enables controls on a form when i want to change records.
Is there a way to disable those controls when I click on another tab? Using the losefocus command. However I can only see Onclick or mousemove etc
Code:
Private Sub cmdChgAccount_Click()
Dim ctl As Control
For Each ctl In Me
If ctl.Tag = "Bank" Then
ctl.Enabled = True
'ctl.Locked = Not (ctl = "" Or IsNull(ctl))
End If
Next ctl
End Sub
Thx for ur help
Darin