Hello everyone,
I am currently working on a database that allows users to select categories from a combo box on a form. Users may choose 1 or both options in this combo box.
The fields in the CB are Privacy and Service Level. The way the business owners want the form to work is to have certain fields (like validation) only viewable if Privacy is one of the options selected in the CB.
I currently have the form set on current to:
Private Sub Form_Current()
Val.Visible = False
End Sub
Additionally, on the CB field I have the following set to After Update:
Private Sub RiskCat_AfterUpdate()
If RiskCat.Column(1) = "Privacy" Then
Val.Visible = True
Else
Val.Visible = False
End If
End Sub
That seems to work if only the Privacy option is selected, however if both Privacy and Service Level are selected the validation field is still not visible. I've tried multiple additional Ifs for both fields, but it errors every time.
I'm not very experienced with VBA, and I've been wracking my brain try to figure this out. Could anyone help me out?
Thanks so much in advance!
I am currently working on a database that allows users to select categories from a combo box on a form. Users may choose 1 or both options in this combo box.
The fields in the CB are Privacy and Service Level. The way the business owners want the form to work is to have certain fields (like validation) only viewable if Privacy is one of the options selected in the CB.
I currently have the form set on current to:
Private Sub Form_Current()
Val.Visible = False
End Sub
Additionally, on the CB field I have the following set to After Update:
Private Sub RiskCat_AfterUpdate()
If RiskCat.Column(1) = "Privacy" Then
Val.Visible = True
Else
Val.Visible = False
End If
End Sub
That seems to work if only the Privacy option is selected, however if both Privacy and Service Level are selected the validation field is still not visible. I've tried multiple additional Ifs for both fields, but it errors every time.
I'm not very experienced with VBA, and I've been wracking my brain try to figure this out. Could anyone help me out?
Thanks so much in advance!