Tab PageIndex



Is it possible to reference the PageIndex instead of the Page name as in the
following


instead of Me.frmAssociates.Left = Me.Associates.Left
Somthing like Me.frmAssociates.Left =
..Pages(.Value).PageIndex.Left

This is a sample what I use now on the tab On change event:

Dim ThisTab As Integer
With Me.TabCtl0
ThisTab = .Pages(.Value).PageIndex
End With
Select Case ThisTab

Case 0


If Me.Associates.Tag = "" Then
Me.frmAssociates.Left = Me.Associates.Left
Me.frmAssociates.Top = Me.Associates.Top
Me.frmAssociates.Width = Me.Associates.Width
Me.frmAssociates.Height = Me.Associates.Height
Me.Associates.Tag = "1"

End If

End Select


.