Here is my code:
Right now, the only thing it will return anything for is if the value is based on the last case, so anything above 500. Why won't it pay attention to anything else?
Code:
Private Sub Pages_AfterUpdate()
Select Case Me!Pages
Case 1 To 100
Output = 3
Case 101 To 150
Output = 4
Case 151 To 200
Output = 5
Case 201 To 250
Output = 6
Case 251 To 300
Output = 7
Case 301 To 350
Output = 8
Case 351 To 400
Output = 9
Case 401 To 450
Output = 10
Case 451 To 500
Output = 11
Case Else
Output = 12
MsgBox Output
End Select
End Sub
Right now, the only thing it will return anything for is if the value is based on the last case, so anything above 500. Why won't it pay attention to anything else?