J
Jimmy
Hello,
Thank you very much for helping me.
Here is the short version of my challenge:
1. Currently, I have attached the following code to my
comboboxes on the OnClick event: Sendkeys "{TAB}", True
2. I did so because my users enjoy the focus moving
after they use the mouse to select an item in the combo
box.
3. I did so without realizing the known issue with
Sendkeys that causes the number lock to shut on and off.
4. My specific need is to delevop a technique to move
the focus to the next tab stop control on the OnClick
event.
5. My hope is to develop generic code that I can use
throughout the program so that I do not have to have
individual statements for all 388 comboboxes.
Here is the work that I have done so far:
1. I have attempted to use the Screen.ActiveControl
properties to identify the next control. Then, to
use .SetFocus or DoCmd.GotoControl to move to that
particular control. So far, no luck on identifying the
control name. (It is a shame that there is not a
Screen.ActiveControl.NextControl as there is a
Screen.ActiveControl.PreviousControl property.
2. I have attempted to use the Index number for the
ActiveControl to determine the next control. However,
the Indexes do not appear to have been created logically
on all of my forms.
Thank you for your assistance. Have a great day.
Jimmy
Thank you very much for helping me.
Here is the short version of my challenge:
1. Currently, I have attached the following code to my
comboboxes on the OnClick event: Sendkeys "{TAB}", True
2. I did so because my users enjoy the focus moving
after they use the mouse to select an item in the combo
box.
3. I did so without realizing the known issue with
Sendkeys that causes the number lock to shut on and off.
4. My specific need is to delevop a technique to move
the focus to the next tab stop control on the OnClick
event.
5. My hope is to develop generic code that I can use
throughout the program so that I do not have to have
individual statements for all 388 comboboxes.
Here is the work that I have done so far:
1. I have attempted to use the Screen.ActiveControl
properties to identify the next control. Then, to
use .SetFocus or DoCmd.GotoControl to move to that
particular control. So far, no luck on identifying the
control name. (It is a shame that there is not a
Screen.ActiveControl.NextControl as there is a
Screen.ActiveControl.PreviousControl property.
2. I have attempted to use the Index number for the
ActiveControl to determine the next control. However,
the Indexes do not appear to have been created logically
on all of my forms.
Thank you for your assistance. Have a great day.
Jimmy