I'm having difficulty with my tab control. A) Its difficult to switch to the correct tab by clicking it as it might take several attempts so I added
. B) When the button cmdGoToFuel is entered (Its the last tab position to send the tab control to the next page tabFuel) it goes to tabPG, however if I remove the vba for cmdGoToPG then it works.I cant seem to figure it out. C) As I stated I added
which helped clicking tabs but it also errors if I use my nav buttons, always errors on last case.
Code:
Private Sub tabPlantReport_Change()
Code:
Private Sub tabPlantReport_Change()
Code:
'Form Tab Navigation
Private Sub tabPlantReport_Change()
Select Case tabPlantReport
Case 0
cmdGotoFuel.SetFocus
Case 1
cmdGoToPG.SetFocus
Case 2
cmdGoToLime.SetFocus
Case 3
cmdGoToAggregate.SetFocus
End Select
End Sub
Private Sub cmdGoToFuel_Enter()
Me![tabFuel].SetFocus
End Sub
Private Sub cmdGoToPG_Enter()
Me![tabPG].SetFocus
End Sub
Private Sub cmdGoToLime_Enter()
Me![tabLime].SetFocus
End Sub
Private Sub cmdGoToAggregate_Enter()
Me![tabAggregate].SetFocus
End Sub
Comment