PSSMargaret
Registered User.
- Local time
- Today, 07:50
- Joined
- Jul 23, 2016
- Messages
- 74
Hello all,
I have exhausted my searches for help on this matter. I have a main form, a tab control with four subforms on the tab control.
I would like the focus to move from the last field on the main form to the first field on the first page of the tab control. I have tried using the OnKeyDown event with the code below and it doesn't work. I have to hit the tab key twice to get it to the first field.
I have tried using the AfterUpdate event on the form too and it doesn't work. You still have to tab twice to get to the field.
If you set the Tab Stop to "No" for the Tab Control, the focus doesn't move to the Tab Control at all.
Any help in the would be greatly appreciated.
If I have missed any pertinent posts regarding this subject, please direct me to them.
Margaret
I have exhausted my searches for help on this matter. I have a main form, a tab control with four subforms on the tab control.
I would like the focus to move from the last field on the main form to the first field on the first page of the tab control. I have tried using the OnKeyDown event with the code below and it doesn't work. I have to hit the tab key twice to get it to the first field.
Code:
Me.sfrmMaterial.SetFocus
I have tried using the AfterUpdate event on the form too and it doesn't work. You still have to tab twice to get to the field.
Code:
TabForm.Pages(0) = "Material"
If you set the Tab Stop to "No" for the Tab Control, the focus doesn't move to the Tab Control at all.
Any help in the would be greatly appreciated.
If I have missed any pertinent posts regarding this subject, please direct me to them.
Margaret