Re: Tab Control Code Question



"DFS" <nospam@xxxxxxxx> wrote in message news:PInBj.2060$Q52.1949@xxxxxxxxxxxxxxxxxxxxxxxxx
Keith Wilby wrote:
What code to I need to return the name of the *current* page on a tab
control? I can return the name of a specific page using (for example)

strCriteria = Me.tabDiscipline.Pages(0).Name

but how do I get the *current* page in the Change event of the tab
control?
Many thanks.

Keith.


This will give you the name you assigned to the selected tab: Forms.FormName.tabCtlName.Pages(Forms.FormName.tabCtlName).Name

This will give you the index of the selected tab: Forms.FormName.tabCtlName




Just the job, thanks.

.


Quantcast