Terry,
Thanks for your reply.
1. This does not seem to work.
It is giving the name of the subreport on one particular tab, no matter
which tab I click.
2. The msgbox code above is apparently referring to an index of items on a
particular tab.
3. If I use msgbox me.tabmain.Value, then I can get the indix number of the
tab clicked.
4. However, I need the name of the tab clicked, not the index number.
I am shifting the tabs around during development and don't want to keep
having to change tab index numbers in code.
5. Do you know how to get the name of the tab selected from its tab index
number?
Thanks.
Alan
Private Sub tabMain_Change()
' Purpose: To recalculate subReports Heights change text entry tabs
ExecutePROC "dbo.sproc_GetSubReportHeights"
'MsgBox Me.tabMain.Pages(Me.tabMain.TabIndex).Name
MsgBox Me.tabMain.Value
' Select Case Me.tabMain.Pages(Me.tabMain.TabIndex).Name
' Case "ManagerReviews"
' Me.treePermalFunds.Visible = True
' Case Else
' Me.treePermalFunds.Visible = True
' End Select
End Sub