i tried that, and it works better, no more error messages, however, it comes up as "Access Granted" no matter what the password is. Below is the code i used.

Private Sub Command1_Click()
passwordX = Val(Text1.Text)
If passwordX = hey Then
Text2.Text = "Access Granted"
Else
Text2.Text = "Access Denied"
End If
End Sub
_________________________
"It's better to burn out, than to fade away."