Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

vba courses london - vba password checking and

Forum home » Delegate support and help forum » Microsoft VBA Training and help » vba courses london - Vba password checking and input mask

vba courses london - Vba password checking and input mask

ResolvedVersion Standard

Susan has attended:
Access VBA course

Vba password checking and input mask

I have a non visible text box on my form called formpassword. I want to display an inputbox and for the characters the person types to appear as asterisks. The following code works but the password is not displayed as asterisks. Please can you tell me how I can do this?

Me.formpassword.InputMask = "password"
Me.formpassword = InputBox("Please enter password")

If formpassword <> "abc" Then
MsgBox "Incorrect password"
DoCmd.Close
Exit Sub
End If

Thanks

Sue

RE: vba password checking and input mask

VB.net provides a template for a login form and all your going to have to do is a little bit of coding to make it all happen.

An article on this is as follows.

http://www.vb-helper.com/howto_net_login_form.html

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

VBA tip:

Empty The Clipboard with CutCopyMode

After each Copy/Paste operation in VBA, you should use the following line of code to empty the clipboard. This ensures that the computer memory doesn't overload:

ActiveSheet.Paste
Application.CutCopyMode = False

View all VBA hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.