J
John S. Ford, MD
Can someone tell me what the problem is with this code?
Dim ctl as Control
For Each ctl In Me.Controls
If (TypeOf ctl Is ComboBox Or TypeOf ctl Is TextBox) And
(ctl.Name <> txtTeamName) Then
ctl.Locked = False
End If
Next ctl
The program seems to ignore the (ctl.Name <> txtTeamName) clause and
improperly UNlocks txtTeamName.
Any idea what I'm doing wrong?
John
Dim ctl as Control
For Each ctl In Me.Controls
If (TypeOf ctl Is ComboBox Or TypeOf ctl Is TextBox) And
(ctl.Name <> txtTeamName) Then
ctl.Locked = False
End If
Next ctl
The program seems to ignore the (ctl.Name <> txtTeamName) clause and
improperly UNlocks txtTeamName.
Any idea what I'm doing wrong?
John