Hi! Folks,

As I am new to VbEnterprize I would be greatful for some help with the following:
Password.

Private Sub cmdEnter_Click()
Dim password As String
password = "123"

If txtPassword.Text = password Then
frmServices.Show
End If
If txtPassword.Text <> password Then
MsgBox ("Wrong Password. Please Try again"), vbRetryCancel
End If
txtPassword.Text = ""

End Sub

I would like password as Integer and not string so I can use numbers only in the password.

Enter:

cmdEnter_Click()
What code do I need to use to enter the password using the return Key also.

Many thanks.
Bill