Asterisk in Inputbox

D

Dave

I am using this code to password protect (such as it is) the opening of a
form

Code:
Private Sub cndAdminArea_Click()

Dim password As String
Dim Answer As String

password = "admin"
Answer = InputBox("Enter Admin Password:  ", "Admin Confirmation",
"Enter Password")
If Answer = password Then
DoCmd.OpenForm "frmUpdate"
Else
MsgBox "You have not entered the correct password" & vbLf & _
"Please check the password and try again OR contact the real
Administrator"
Exit Sub
End If
End Sub

I would like the password as it is being typed in to show Asterisk's

I tried this with no luck.
InputBox.PasswordChar [=*]

Any suggestions on how to do this


OR - Alternatively

How to use a password table where the datatype of the password field has an
input mask for password


Any help here will be appreciated.

Thanks in advance
dave
 
M

Mike Painter

There is a format wizard which allows you to present the info as a series of
astericks.
 
D

Dave

How do I apply that to an Inputbox?

Mike Painter said:
There is a format wizard which allows you to present the info as a series
of astericks.
Dave said:
I am using this code to password protect (such as it is) the opening
of a form

Code:
Private Sub cndAdminArea_Click()

Dim password As String
Dim Answer As String

password = "admin"
Answer = InputBox("Enter Admin Password:  ", "Admin Confirmation",
"Enter Password")
If Answer = password Then
DoCmd.OpenForm "frmUpdate"
Else
MsgBox "You have not entered the correct password" & vbLf & _
"Please check the password and try again OR contact the real
Administrator"
Exit Sub
End If
End Sub

I would like the password as it is being typed in to show Asterisk's

I tried this with no luck.
InputBox.PasswordChar [=*]

Any suggestions on how to do this


OR - Alternatively

How to use a password table where the datatype of the password field
has an input mask for password


Any help here will be appreciated.

Thanks in advance
dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top