G
Guest
I have a 2 text boxes that i need to be visible when the text entered in a
3rd text box is 78999 or 77000. The code worked when i had only one
condition, but the code below doesn't work, any text entered makes the 2 text
boxes visible. Any help is much appreciated.
Private Sub txtAcctNo_AfterUpdate()
If txtAcctNo.Value = "78999" Or "77000" Then
txtAcctName.Visible = True
txtPolNo.Visible = True
Else: txtAcctName.Visible = False
txtPolNo.Visible = False
End If
End Sub
3rd text box is 78999 or 77000. The code worked when i had only one
condition, but the code below doesn't work, any text entered makes the 2 text
boxes visible. Any help is much appreciated.
Private Sub txtAcctNo_AfterUpdate()
If txtAcctNo.Value = "78999" Or "77000" Then
txtAcctName.Visible = True
txtPolNo.Visible = True
Else: txtAcctName.Visible = False
txtPolNo.Visible = False
End If
End Sub