Results 1 to 6 of 6
  1. #1
    izzygrace3 is offline Novice
    Windows Vista Access 2007
    Join Date
    Aug 2011
    Posts
    4

    Unique Username and Password with specific permissions for each

    I have completed a database for work, but I have been researching for a way to create a login screen where each user creates their own username and login. I would also like to be able to only allow certain permissions per user. Is there a way to do this in Access 2007?



    Any help would be greatly appriciated.

    Thank you in advance!

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    the easiest way to do it is to probably store the information in tables. that's the only way I've ever done it.

    for instance, a users table with one field per activity. YES/NO check box to indicate if that person can perform the activity.

    or something similar. many ways to do this. What I usually do though, is store the information in tables and have a couple of global functions I use when activities are requested. For instance, functions called IsAdmin() and HasRights() are good ones to return a boolean to see if the user that's logged in can do the activity they request.

  3. #3
    izzygrace3 is offline Novice
    Windows Vista Access 2007
    Join Date
    Aug 2011
    Posts
    4
    thank you for the help, Adam.

    The truth, however, is that I am pretty new to access and while I understand what you are saying but I am just not sure how to institute it. Do you have a sample database that I can look at or anything like that?

  4. #4
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by izzygrace3 View Post
    thank you for the help, Adam.

    The truth, however, is that I am pretty new to access and while I understand what you are saying but I am just not sure how to institute it. Do you have a sample database that I can look at or anything like that?
    Yes I can do that, since you asked so kindly.

    Attached is such. Some login code runs and useful after you login. The privalege based code that you're probably interested can be run when you click SPEC SHEETS or COA REPORT, which are buttons near the top of the main form GUI.

    Some of the other global functions you might be interested in as well. Most of the objects and all of the data is deleted out of this file, but this was one of the most effecient databases that I've ever built with a size under 5MB.

    So, IMO, it's a great learning tool for someone learning this program. This was built completely off of the Northwind model but 90% of the database is run off of only a few function call concepts.

    Compared to the actual product though, there is practically no code here, but it's still some learning material! There certainly is some help in it that can teach you how to make repeatable operations very efficient by eliminating redundancies that "box thinkers" usually produce with their products.

  5. #5
    izzygrace3 is offline Novice
    Windows Vista Access 2007
    Join Date
    Aug 2011
    Posts
    4
    Thank you so Much, Adam. You are now my hero.

  6. #6
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by izzygrace3 View Post
    Thank you so Much, Adam. You are now my hero.
    do I get a uniform and a cape and everything?

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Username/Password From Table
    By mj-egerton in forum Programming
    Replies: 0
    Last Post: 04-03-2011, 04:46 AM
  2. Change username and password form..
    By Mrcams in forum Access
    Replies: 9
    Last Post: 12-07-2010, 11:22 AM
  3. Replies: 4
    Last Post: 12-05-2010, 07:24 AM
  4. Replies: 7
    Last Post: 10-27-2010, 12:02 PM
  5. request username and password
    By meysam_e2006 in forum Access
    Replies: 2
    Last Post: 07-02-2010, 02:03 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums