|
I've got a few subforms, each with an accellerator key assigned.
When the user presses, for instance, Alt+2, the focus shifts to
subform "2". This works OK once the user has selected a record on the
form...then if they hop to another field and back to the form, they can navigate
the subform via up/down arrow keys that respond to KeyDown events on the
subform.
The problem is just after the parent form has opened and the user has yet to
click on any of the subform's rows. Now when the user presses Alt+2, from the
user's perspective nothing happens. When they hit up/down arrows, they can't
walk the subform because there is no currently-selected record to catch the
keystroke.
Seems like I should be doing something in Form_Open() and whenever I reset
..RecordSource....maybe something with .RecordSetClone and a bookmark?
Anybody know the right way to handle this?
--
PeteCresswell |