Results 1 to 7 of 7
  1. #1
    Rameez is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jun 2009
    Location
    Chennai, India
    Posts
    40

    Exclamation Controlled access to forms

    I have a login screen at the beginning of the application...once the user logs in...I have to look for his/her credentials in the login table...say if he is "admin"...he should have access to all forms. If he is a user with "vendor" credentials...he should see forms specific to vendors.



    how to do this....?
    Please help...Thanks in advance...

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I have not used it but have you looked at User Level Security (ULS)? I believe it has these type of features built into it.

  3. #3
    marianne is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Mar 2009
    Location
    Asia Pacific Region
    Posts
    150
    yup ULS have this features Rameez. but you can always built also your own custom security like what is in your mind, coz I have done that. but as of now I am studying ULS because I want my database objects to be secured from entering into.

  4. #4
    Rameez is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jun 2009
    Location
    Chennai, India
    Posts
    40
    Thanks for the ideas....I will definitely look into user level security...

    For now...I figured out a way...I would like to put it here...so that it may be of help to others.(I don't think this the best way but...)

    In the login form's code...after validating the login...I have taken the Credentials(role) of that user and the name of that user into a variable defined in a module...using [Call getrole(rolename)] and then called the setrole and setuser functions when I need them.

    My Module code is here...

    Option Compare Database
    Public role As String
    Public user As String
    Sub getrole(role1 As String)
    role = role1
    End Sub
    Sub getuser(user1 As String)
    user = user1
    End Sub
    Function setrole() As String
    setrole = role
    End Function
    Function setuser() As String
    setuser = user
    End Function

  5. #5
    marianne is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Mar 2009
    Location
    Asia Pacific Region
    Posts
    150
    so how is it accomplished?

  6. #6
    Rameez is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jun 2009
    Location
    Chennai, India
    Posts
    40
    actually user level security may not be an option for me...as i want the database to work in different machines...and i won't be the one granting access to the database.

    should I mark this as solved...as i have the remedy for this issue.

    http://databases.about.com/od/tutori...ersecurity.htm

    The above link has info on ULS...In case any one needs.

    Thanks Marianne and Rural Guy(Allan)

  7. #7
    marianne is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Mar 2009
    Location
    Asia Pacific Region
    Posts
    150
    yup. this ULS maybe option for the other and not for the other. but as I know even if you use the ULS, you can still use that database to work in different machines. you just need the .mdw file made in ULS to accompany your db.

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

Similar Threads

  1. Replies: 12
    Last Post: 10-20-2014, 11:22 AM
  2. Replies: 0
    Last Post: 06-11-2009, 09:51 AM
  3. Creating Watermark in Access Reports / Forms
    By Alex Motilal in forum Reports
    Replies: 0
    Last Post: 11-21-2008, 07:11 AM
  4. Help with Access & Forms
    By gnatgnats in forum Forms
    Replies: 2
    Last Post: 02-18-2008, 10:33 AM
  5. Replies: 0
    Last Post: 01-19-2007, 07:58 AM

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