I have a form that has a control named Division that has 4 separate values and I want the tab control on the page to display the appropriate tab for the division that comes up. this is the code as I have written it:
Private Sub Form_Current()
Select Case Me.Division
Case "Best Cheerleader"
Me!TabCtl12.Val ue = 0
Case "Best Dancer"
Me!TabCtl12.Val ue = 1
Case "Best Jumps"
Me!TabCtl12.Val ue = 2
Case "Best Tumbling Pass"
Me!TabCtl12.Val ue = 3
Case Else
MsgBox "you idiot"
End Select
Yet to no end! all that happens is that the form gets a bit fuzzy and messed up. Please assist if you can
Private Sub Form_Current()
Select Case Me.Division
Case "Best Cheerleader"
Me!TabCtl12.Val ue = 0
Case "Best Dancer"
Me!TabCtl12.Val ue = 1
Case "Best Jumps"
Me!TabCtl12.Val ue = 2
Case "Best Tumbling Pass"
Me!TabCtl12.Val ue = 3
Case Else
MsgBox "you idiot"
End Select
Yet to no end! all that happens is that the form gets a bit fuzzy and messed up. Please assist if you can
Comment