Private Sub Tab_Change()
If Me.TabNumber = 0 Then
Me.frmCounties.SetFocus
Me.frmCounties.Form.County.SetFocus
ElseIf Me.TabNumber = 1 Then
Me.frmPAM.SetFocus
Me.frmPAM.Form.PAM.SetFocus
ElseIf Me.TabNumber = 2 Then
Me.StatesStatesTab.SetFocus
ElseIf Me.TabNumber = 3 Then
Me.frmTerrAMs.SetFocus
Me.frmTerrAMs.Form.TerrAM.SetFocus
ElseIf Me.TabNumber = 4 Then
Me.frmTerrLFAs.SetFocus
Me.frmTerrLFAs.Form.TerrLFA.SetFocus
ElseIf Me.TabNumber = 5 Then
Me.frmTeamAMs.SetFocus
Me.frmTeamAMs.Form.TeamAM.SetFocus
ElseIf Me.TabNumber = 6 Then
Me.frmTeamLFAs.SetFocus
Me.frmTeamLFAs.Form.TeamLFA.SetFocus
ElseIf Me.TabNumber = 7 Then
Me.frmCRDs.SetFocus
Me.frmCRDs.Form.CRD.SetFocus
ElseIf Me.TabNumber = 8 Then
Me.frmZones.SetFocus
Me.frmZones.Form.Zone.SetFocus
ElseIf Me.TabNumber = 9 Then
Me.frmRegionAM.SetFocus
Me.frmRegionAM.Form.AM_REGION_REP_NAME.SetFocus
ElseIf Me.TabNumber = 10 Then
Me.frmRegionLFA.SetFocus
Me.frmRegionLFA.Form.LFA_REGION_REP_NAME.SetFocus
Else
End If
End Sub
|