I have a text field AnesNum that can include several ID numbers. If the ID number 111 is include in this set of numbers, I want the text field OtherAnesType to become visible. The following code works if I type in *111* but not if I type in 111 or 111, 123. The help file said that * can be used as a wildcard but it's not working. Any ideas?
Thanks for the help, Matt
Code:
Private Sub AnesNum_AfterUpdate()
If AnesNum = "*111*" Then
OtherAnesType.Visible = True
Else
OtherAnesType.Visible = False
End If
End Sub
Thanks for the help, Matt