David R
01-30-2002, 10:04 AM
Preface: I'm using Acc2k and it's possible this has changed, however the help files lie in this case (always a possibility).
I'm trying to simplify my code somewhat, because right now there is some duplication. I have to use the Click and the GotFocus events to set my positioning (it applies to other actions too, but this is a non-trivial example).
Private Sub TelephoneNum_GotFocus()
Me.ActiveControl.SelStart = 6
End Sub
Private Sub TelephoneNum_Click()
Me.ActiveControl.SelStart = 6
End Sub
The help file says when a mouse click is used to change focus, the events are fired in the following order for the 2nd control (from find out when events occur) : Enter -> GotFocus -> MouseDown -> MouseUp -> Click
I know I can step through the code to see when events fire, but we're getting kicked out early today due to the weather.
David R
I'm trying to simplify my code somewhat, because right now there is some duplication. I have to use the Click and the GotFocus events to set my positioning (it applies to other actions too, but this is a non-trivial example).
Private Sub TelephoneNum_GotFocus()
Me.ActiveControl.SelStart = 6
End Sub
Private Sub TelephoneNum_Click()
Me.ActiveControl.SelStart = 6
End Sub
The help file says when a mouse click is used to change focus, the events are fired in the following order for the 2nd control (from find out when events occur) : Enter -> GotFocus -> MouseDown -> MouseUp -> Click
I know I can step through the code to see when events fire, but we're getting kicked out early today due to the weather.
David R