You just ask for the value of the tab control, which is pretty much like an
option group. Put this in the On_Change event of the tab control to find out
what tab was clicked:
select Case Me![InsertTabCtlName]
Case 0 '1st tab is clicked
Case 1 '2nd tab is clicked, and so-on
end if
"Keith Wilby" <he**@there.comwrote in message
news:47**********@glkas0286.greenlnk.net...
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.