View Full Version : Tab Control


jwindon
08-27-2001, 08:26 AM
What is the command to move the focus to another tab on a form?

The form is lengthy and I want to put a command button on the bottom to take the user to the other tab.

Abby N
08-27-2001, 08:34 AM
Me.TabControlName.Pages(#).SetFocus

Where '#' is the page index of the tab you wish to view. Keep in mind that tab controls start at 0. So, your first tab is pages(0), the second tab is page(1), ect...

Good luck.

~Abby

jwindon
08-27-2001, 09:00 AM
Thanks Abby! Works just fine!