Connecting Tech Pros Worldwide Help | Site Map

Subform: Making a record current when opened?

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 13th, 2005, 06:05 AM
(Pete Cresswell)
Guest
 
Posts: n/a
Default Subform: Making a record current when opened?

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

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.