BrettM
just a pert, "ex" to come
- Local time
- Tomorrow, 05:49
- Joined
- Apr 30, 2008
- Messages
- 134
As far as I am aware, the following code should select the entire field of a Combo Box when used in the On Got Focus event.
If the code is stepped through then it works correctly.
If the code is run normally then it doesn't.
Can anyone suggest what is happening?
Regards Brett
Code:
Me.Controls(Screen.ActiveControl.Name).SelStart = 0
Me.Controls(Screen.ActiveControl.Name).SelLength = Len(Me.Controls(Screen.ActiveControl.Name))
If the code is stepped through then it works correctly.
If the code is run normally then it doesn't.
Can anyone suggest what is happening?
Regards Brett