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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top