Hi,
I need a text field to show based on the selection in a combo box. Now I can do this if there is only 1 selection for the field to show on, but here there is 3 possible options that if 1 of them is selected I need a field to appear for the user to type into.
Code I have now for 1 option is:
But what I need is the txtSchool field to show if the user selected 2, 3 or 5 from the combo box.
I did try If Me.cboSchool = "2" Or "3" Or "5" Then but to no avail.
Is this possible?
Thanks
Will
I need a text field to show based on the selection in a combo box. Now I can do this if there is only 1 selection for the field to show on, but here there is 3 possible options that if 1 of them is selected I need a field to appear for the user to type into.
Code I have now for 1 option is:
Code:
Private Sub cboSchool_AfterUpdate()
If Me.cboSchool = "2" Then
Me.txtSchool.Visible = True
Else
Me.txtSchool.Visible = False
Me.txtSchool.Value = Null
End If
End Sub
Private Sub Form_Current()
If Me.cboSchool = "2" Then
Me.txtSchool.Visible = True
Else
Me.txtSchool.Visible = False
End If
End Sub
But what I need is the txtSchool field to show if the user selected 2, 3 or 5 from the combo box.
I did try If Me.cboSchool = "2" Or "3" Or "5" Then but to no avail.
Is this possible?
Thanks
Will