Search code examples
ms-accessms-access-2010ms-access-2013ms-access-2016

Why does subform get focus in Access 2016?


I have a main form, ClientInfoForm, and a subform, EditTransactions_subform on a tabbed page. When I click on the tab containing the subform, the subform gets the focus, and not a control on the tab. The subform is in datasheet view. I would like the focus to go to a control on the tabbed page, and not the subform. It seems that the leftmost column on the subform gets the focus. How do I correct this?

Thanks in advance for your help!

Sincerely, Howard


Solution

  • Set TabIndex property of the controls. Whatever control you want to first get focus should be set to 0.