S
SElgin via AccessMonster.com
I am trying to limit the number of items in a combo box list based on the
value of another combo box. Here is my non working code.
Private Sub StuLevel_BeforeUpdate(Cancel As Integer)
Select Case Me.StuInstrument
Case 1, 2
Me.StuLevel.ListRows = 11
Case 3, 5
Me.StuLevel.ListRows = 8
Case 4
Me.StuLevel.ListRows = 15
Case 6
Me.StuLevel.ListRows = 10
Case 7
Me.StuLevel.ListRows = 4
End Select
Me.StuLevel.Requery
End Sub
It is possible that I have this in the wrong event as well.
Any help will be appreciated.
TIA
Steve
value of another combo box. Here is my non working code.
Private Sub StuLevel_BeforeUpdate(Cancel As Integer)
Select Case Me.StuInstrument
Case 1, 2
Me.StuLevel.ListRows = 11
Case 3, 5
Me.StuLevel.ListRows = 8
Case 4
Me.StuLevel.ListRows = 15
Case 6
Me.StuLevel.ListRows = 10
Case 7
Me.StuLevel.ListRows = 4
End Select
Me.StuLevel.Requery
End Sub
It is possible that I have this in the wrong event as well.
Any help will be appreciated.
TIA
Steve