Hello!
I'm new here. And i am noob in Microsoft Access. I just try to do something :).
I want to make a form of authentication in Microsoft Access.
I have this code:
Option Compare Database
Private Sub Form_Load()
Dim PassWord As String
PassWord = InputBox("Enter the password for the seller")
If PassWord = "seller" Then
' Open Form
DoCmd.OpenForm "seller"
DoCmd.GoToRecord , , acNewRec
DoCmd.Close acForm, "seller authentication"
Else
MsgBox ("Wrong password!")
DoCmd.Close acForm, "seller authentication"
End If
End Sub
Where am I supposed to add something that would hide the password? Like: **** or something.
Or if I can do it so please give me some advice.
Thank you so much! :)
I'm new here. And i am noob in Microsoft Access. I just try to do something :).
I want to make a form of authentication in Microsoft Access.
I have this code:
Option Compare Database
Private Sub Form_Load()
Dim PassWord As String
PassWord = InputBox("Enter the password for the seller")
If PassWord = "seller" Then
' Open Form
DoCmd.OpenForm "seller"
DoCmd.GoToRecord , , acNewRec
DoCmd.Close acForm, "seller authentication"
Else
MsgBox ("Wrong password!")
DoCmd.Close acForm, "seller authentication"
End If
End Sub
Where am I supposed to add something that would hide the password? Like: **** or something.
Or if I can do it so please give me some advice.
Thank you so much! :)