Password Protect a form in MS Access

Posted on 2007-07-23
Last Modified: 2013-11-28
Hi there,
I would like to have a switchboard item that is password protected, so that ony authorised users can access a particular 'tree' of forms.

Alternatively, I would like a form that kills itself if the user doesn't enter the correct password and returns the user to the switchboard

Additionally, I would like for people to not be able to read the source code for the password, so that it remains *relatively* secure.


Question by:rperies
    LVL 119

    Accepted Solution

    see this link

    How to Create a Password Protected Form or Report
    LVL 75

    Assisted Solution

    by:DatabaseMX (Joe Anderson - Access MVP)
    Then you may want to look at ULS (User Level Security):

    Here are some links ...

    step by step instructions on how to do it RIGHT:    

    Excellent resource book which I have      

    Microsoft info:

    Access Security Manager:  

    LVL 84

    Assisted Solution

    by:Scott McDaniel (Microsoft Access MVP - EE MVE )
    In addition to Cap's link: to make sure users couldn't read the Source Code, deploy your project as an .MDE file ... this "compiles" the VBA to nonreadable machine code, and disallows the user from viewing your objects in design view. It does NOT, however, do anything with your tables, so if you're storing the Passwords in a table, users could potentially view those passwords.
    LVL 1

    Expert Comment

    Forced accept.

    EE Admin

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
    Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
    In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now