Select first tab in tab control on record change

  • Thread starter Thread starter Sandy
  • Start date Start date
S

Sandy

I have a form with a tab control that has several tabs.

How do I get the first tab to display when I change records? Currently the
last tab that was active stays active when I change records.

Many thanks,
sandra
 
Hi Sandy,
on the oncurrent event of the form containing the tab control insert this

TabCtl0.Pages.Item(0).SetFocus

and substitute TabCtl0 with the name of your tab control.

HTH Paolo
 
Back
Top