I think that's globally correct apart from one bit.

Code:
 
If passwordX = "hey" Then
[B]display.Text2[/B] = "Access Granted"
Else
[B]display.Text2 [/B]= "Access Denied"
End If
 
i don't what display.text2 would do but if you have a txtbox control called text2 if think it would be smtg like

Code:
 
If passwordX = "hey" Then
[B]Text2.text[/B] = "Access Granted"
Else
[B]Text2.text [/B]= "Access Denied"
End If