A
AlCamp
I posted this question earlier today, but since I've solved some issues, and
subsequently, I've been able to better define the problem...
I have a main form (frmMain) with 3 individual and seperate subforms (not
nested).
I'd like to create a method whereby the user can, by keystroke (ex. Alt-S)
send the cursor to the next subform.
(If the user is in frmSub1 the Alt-S would take them to frmSub2... if in
frmSub2 then the user would go to frmSub3.)
I created a button on frmSub1 (cmdGoToSub2) with a Caption = &S, so that
when the user enters Alt-S the code should fire.
In the On Click event of cmdGoToSub2...
Me.Parent.frmSub2.SetFocus
OK.. if I physically mouse click the button, the code works just fine. The
cursor goes to the first field in frmSub2, and I see it there. Wicked good!
However, if I use Alt-S to fire the code, the cursor only goes to the
calling button on frmSub1.
If I then hit the F9 key, the cursor goes... correctly... to frmSub2. (I
put Refresh in the code, but it does not work)
How can I get Alt-S to run the code the same way as physically clicking the
GoTo button?
Thanks for any help in advance,
Al Camp
subsequently, I've been able to better define the problem...
I have a main form (frmMain) with 3 individual and seperate subforms (not
nested).
I'd like to create a method whereby the user can, by keystroke (ex. Alt-S)
send the cursor to the next subform.
(If the user is in frmSub1 the Alt-S would take them to frmSub2... if in
frmSub2 then the user would go to frmSub3.)
I created a button on frmSub1 (cmdGoToSub2) with a Caption = &S, so that
when the user enters Alt-S the code should fire.
In the On Click event of cmdGoToSub2...
Me.Parent.frmSub2.SetFocus
OK.. if I physically mouse click the button, the code works just fine. The
cursor goes to the first field in frmSub2, and I see it there. Wicked good!
However, if I use Alt-S to fire the code, the cursor only goes to the
calling button on frmSub1.
If I then hit the F9 key, the cursor goes... correctly... to frmSub2. (I
put Refresh in the code, but it does not work)
How can I get Alt-S to run the code the same way as physically clicking the
GoTo button?
Thanks for any help in advance,
Al Camp