M
Martin
I am having a problem that the focus would not return to the control when the
SetFocus was included in the AfterUpdate event of that control. I search
this group and found a solution that was basically to change focus to another
control then back to the desired control.
That solution works fine for me except for one problem. I have two controls
that I am using the AfterUpdate event and the SetFocus. One is the first
control in the tab order, the other is the last. My AfterUpdate event works
fine moving the focus back to the control on the "first" control, but does
not work on the "last". That is where I had to use the solution I mentioned
above.
It does not make sense to me that the SetFocus would work when the tab order
is the first, but not work when the tab order is the last. Can someone offer
some insight as to why this might happen?
Thanks.
SetFocus was included in the AfterUpdate event of that control. I search
this group and found a solution that was basically to change focus to another
control then back to the desired control.
That solution works fine for me except for one problem. I have two controls
that I am using the AfterUpdate event and the SetFocus. One is the first
control in the tab order, the other is the last. My AfterUpdate event works
fine moving the focus back to the control on the "first" control, but does
not work on the "last". That is where I had to use the solution I mentioned
above.
It does not make sense to me that the SetFocus would work when the tab order
is the first, but not work when the tab order is the last. Can someone offer
some insight as to why this might happen?
Thanks.