98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum 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
Resolved · Low Priority · Version 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 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
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
VBA tip:Good coding practiceIt is important that you always comment the VBA code that you write. By doing this it will make the code much easier to read, as both yourself and other people will be able to see what the code is doing or meant to be doing. This is very important if there is more than one person who writes code in the company as you may have different styles of coding and may not really understand what the other person is trying to do. Also if you write some code and then do not touch it for a year or so you may actually forget what it is meant to be doing. so it is very important to include comments throughout your code and try and make sure that they are as useful as possible |