TheSearcher
Registered User.
- Local time
- Yesterday, 21:53
- Joined
- Jul 21, 2011
- Messages
- 346
cmb_Client is an acComboBox - but shouldn't this code prevent me from getting the "You can't hide a control that has the focus" error?
Code:
For Each ctl In Me.Controls
If ctl.ControlType = acTextBox Or ctl.ControlType = acComboBox Then
ctl.Value = Null
cmb_Client.SetFocus
ctl.Visible = False
End If
Next ctl