B
Barkley via AccessMonster.com
I am trying to run a Select Case procedure but regardless of the outcome of
my combo box, the procedure keeps running the Case Else option... which is to
display a message box stating "try again"... here is my code...
Private Sub Combo0_AfterUpdate()
Select Case [Combo0]
Case [Combo0] = "Apples"
Option2.Enabled = True
Option4.Enabled = True
Option6.Enabled = True
Option11.Enabled = False
Option13.Enabled = False
Option15.Enabled = False
Option17.Enabled = False
Label9.Visible = True
Label10.Visible = False
Case [Combo0] = "Oranges"
Option2.Enabled = False
Option4.Enabled = False
Option6.Enabled = False
Option11.Enabled = True
Option13.Enabled = True
Option15.Enabled = True
Option17.Enabled = True
Label9.Visible = False
Label10.Visible = True
Case [Combo0] = "Papayas"
Option2.Enabled = False
Option4.Enabled = False
Option6.Enabled = False
Option11.Enabled = False
Option13.Enabled = False
Option15.Enabled = False
Option17.Enabled = False
Label9.Visible = False
Label10.Visible = False
Case Else
MsgBox ("Try Again")
End Select
End Sub
Any suggestions?
my combo box, the procedure keeps running the Case Else option... which is to
display a message box stating "try again"... here is my code...
Private Sub Combo0_AfterUpdate()
Select Case [Combo0]
Case [Combo0] = "Apples"
Option2.Enabled = True
Option4.Enabled = True
Option6.Enabled = True
Option11.Enabled = False
Option13.Enabled = False
Option15.Enabled = False
Option17.Enabled = False
Label9.Visible = True
Label10.Visible = False
Case [Combo0] = "Oranges"
Option2.Enabled = False
Option4.Enabled = False
Option6.Enabled = False
Option11.Enabled = True
Option13.Enabled = True
Option15.Enabled = True
Option17.Enabled = True
Label9.Visible = False
Label10.Visible = True
Case [Combo0] = "Papayas"
Option2.Enabled = False
Option4.Enabled = False
Option6.Enabled = False
Option11.Enabled = False
Option13.Enabled = False
Option15.Enabled = False
Option17.Enabled = False
Label9.Visible = False
Label10.Visible = False
Case Else
MsgBox ("Try Again")
End Select
End Sub
Any suggestions?