sorry, i think this is what you may want
Private Sub Txtanswer_KeyPress(KeyAscii As Integer)
If Txtanswer.Text = "hello" Then
End
End If
End Sub
i would also move you end below rather than after the "then"
Private Sub txtanswer_Validate Event ()
if txtanswer.text="hello" then
end
End Sub
I'mnot sure about the valid event though.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.