+ Reply to Thread
Results 1 to 2 of 2

userform to log in based on password and security level

  1. #1
    Forum Contributor
    Join Date
    03-02-2010
    Location
    Denver, CO
    MS-Off Ver
    Excel 2010
    Posts
    109

    userform to log in based on password and security level

    Hello all,

    I have an Access 2007 database that I have set up to have a user id to log into. That is working perfectly. I want to add another item for the login to look at which will say something along the lines of "your password matched, and your security level is 2, so this switchboard will open" or "your password matched and your security level is 1, so this switchboard will open."

    I'm not even sure quiet where to begin to do this.

    Here is the code I am using for the log on
    Please Login or Register  to view this content.
    Any ideas on what I would modify to get this to do what I need?

    Thanks!

  2. #2
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: userform to log in based on password and security level

    Just store the security level and corresponding switchboard in a table and link each user to a particular level and switchboard. You can use Dlookup again to find which security level to announce and which switchboard (form) to open.

    There are a few things to remember when using a form to open access to different security levels. You need to make sure the user can't close the form without the database exiting. You definitely want the form modal, and control the form exit through a button control. Disable the X in the upper right corner by setting the Close Button property to No.
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1