I have a control on a subform with the following code
Private Sub Project_Name_DB_Key_Cbo_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 9 Then 'It's a Tabkey
If Shift = 1 Then ' It's a ShiftTab. Move backward in the tab order of the main from
Else ' It's a forward tab. Move to the next control in the tab order of the main from
on a Tab keypress (the else) condition, focus quickly moves to Regulatory_Sector_DB_Key and then on to the next control in the tab order. A similar thing happens on a ShiftTab keypress - focus goes to Application_Cbo and then on to the previous control in the tab order.
I've tried variations of the naming convention for the control e.g.
all have the same behavior.
If anyone has any ideas about how to prevent this unwanted behavior I'd appreciate a pointer.
Thanks in advance.