I am trying to use three option buttons in an option group to allow my users to select which information they want to see. (Eventually, it will be a drill-down type of operation.)
Anyway, I have never used the select case function, and am having trouble getting it to work. My current form has the option group with three choices, and then the 'next step' button. Clicking the 'next step' button runs VBA code that says...
Private Sub Next_Click()
Select Case Index
Case Is = 1
MsgBox "Option 1"
Case Is = 2
MsgBox "Option 2"
Case Is = 3
MsgBox "Option 3"
Case Else
MsgBox "DUH"
End Select
End Sub
When I do this, all I get is the Case Else response.
Can anyone help me?
Thanks
Harry J.
Harry Jessen
HMJessen@Yahoo.com
Anyway, I have never used the select case function, and am having trouble getting it to work. My current form has the option group with three choices, and then the 'next step' button. Clicking the 'next step' button runs VBA code that says...
Private Sub Next_Click()
Select Case Index
Case Is = 1
MsgBox "Option 1"
Case Is = 2
MsgBox "Option 2"
Case Is = 3
MsgBox "Option 3"
Case Else
MsgBox "DUH"
End Select
End Sub
When I do this, all I get is the Case Else response.
Can anyone help me?
Thanks
Harry J.
Harry Jessen
HMJessen@Yahoo.com