Computer Learning Zone CLZ Access Excel Word Windows

For me, I am driven by two main philosophies: know more today about the world than I knew yesterday and lessen the suffering of others. You'd be surprised how far that gets you.

-Neil deGrasse Tyson
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Microsoft Access 306    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Password
Joni M 
    
13 years ago
Richard... sorry, I'm confused - again  :-)
This is the code I wrote:
Private Sub btnInvoices_Click()
    Dim MyPassword As String
    MyPassword = InputBox("Enter Password", "Password")
    If MyPassword = "mypassword" Then
        DoCmd.OpenForm "frmInvoices"
    Else
        MsgBox "Your request has been canceled or you have entered an invalid password.  Please try again or contact your System Administrator.", vbCritical, "Sorry..."
        Exit Sub
    End If  
End Sub

On other fields there would be an INPUT MASK option under the Data tab of the Property Sheet, but buttons don't have this option.  Is there a set of code I could use instead?


Reply from Richard Rost:

Sorry, I didn't catch that you're using an actual InputBox function for this. No, there's no way to mask the input in this case. What I have done in the past is to create my own little logon form with a single text box (password) and an OK button. Make it popup and modal, and have the OK button check for the password.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Microsoft Access 306.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/8/2026 12:21:27 AM. PLT: 0s