I have three comboboxes. Box 1 determines whether 2 and 3 are visible using the following code:
Private Sub Combo001_Click()
Select Case Me.Combo001
Case "Lewisville Lake"
Me.Combo002.Visible = True
Me.Combo003.Visible = False
Case "Grapevine Lake"
Me.Combo002.Visible = False
Me.Combo003.Visible = True
Case Else
Me.Combo002.Visible = False
Me.Combo003.Visible = False
End Select
End Sub
For whatever reason, combo002 shows up whether you have clicked on combo001 or not, allowing the user to create an entry such that combo001 records " " and combo002 records one of three listed choices.
My question, finally, is this...How do you set up the code or whatever else so that having " " as an entry in combo001 will deny the user the opportunity to store/save the record? Also, why can I still see either combo002 or combo003 if I haven't made an entry in combo001? How do I rewrite the code or make a change such that neither combo002 or combo003 is visible until combo001 has a viable entry in it?
Struggling as a beginner
Steve P.
Private Sub Combo001_Click()
Select Case Me.Combo001
Case "Lewisville Lake"
Me.Combo002.Visible = True
Me.Combo003.Visible = False
Case "Grapevine Lake"
Me.Combo002.Visible = False
Me.Combo003.Visible = True
Case Else
Me.Combo002.Visible = False
Me.Combo003.Visible = False
End Select
End Sub
For whatever reason, combo002 shows up whether you have clicked on combo001 or not, allowing the user to create an entry such that combo001 records " " and combo002 records one of three listed choices.
My question, finally, is this...How do you set up the code or whatever else so that having " " as an entry in combo001 will deny the user the opportunity to store/save the record? Also, why can I still see either combo002 or combo003 if I haven't made an entry in combo001? How do I rewrite the code or make a change such that neither combo002 or combo003 is visible until combo001 has a viable entry in it?
Struggling as a beginner
Steve P.