Results 1 to 8 of 8
  1. #1
    joe1987 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Oct 2011
    Posts
    15

    restrictions for different users

    Hi,


    I'm coming back with the same question as I haven't been able to find a solution to this one. I have my data base splitted in to front/end. There's login form implemented retrieving username and password from a table. There're couple of restrictions like: admin - can delete records; non admin - can't delete records. But my main purpose is to have such restriction that each front user will see the data entered by him only and back end should reflect all data entered by different front end users.
    Can anybody help me on this?
    I would appreciate clear and understandable explanation on how to do this.

  2. #2
    pdebaets is offline Competent Performer
    Windows Vista Access 2010 (version 14.0)
    Join Date
    Jul 2010
    Location
    Los Angeles
    Posts
    235
    You'll need to keep the user name in a table field. Then you'll need to filter your forms when they open to just show the records for the current active user.

  3. #3
    joe1987 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Oct 2011
    Posts
    15
    Quote Originally Posted by pdebaets View Post
    You'll need to keep the user name in a table field. Then you'll need to filter your forms when they open to just show the records for the current active user.
    How should I have to filter so? Is this a code or access implemented function?

  4. #4
    pdebaets is offline Competent Performer
    Windows Vista Access 2010 (version 14.0)
    Join Date
    Jul 2010
    Location
    Los Angeles
    Posts
    235
    Here's an example (from your OnOpen event procedure):

    Me.Filter = "CustomerID = 1"
    Me.FilterOn = True

  5. #5
    joe1987 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Oct 2011
    Posts
    15
    Quote Originally Posted by pdebaets View Post
    Here's an example (from your OnOpen event procedure):

    Me.Filter = "CustomerID = 1"
    Me.FilterOn = True


    That's really helpful as I don't even know how to form onopen procedure...
    Thanks anyway...

  6. #6
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    There is a loophole in using filters as if they are not switched off the used can un-filter manually and then they can see all records. Rather put it in the record source of the form (WHERE username=login)

  7. #7
    pdebaets is offline Competent Performer
    Windows Vista Access 2010 (version 14.0)
    Join Date
    Jul 2010
    Location
    Los Angeles
    Posts
    235
    Here's some info on how to create an event procedure: http://peterssoftware.com/faq.htm#quiz2

  8. #8
    joe1987 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Oct 2011
    Posts
    15
    Quote Originally Posted by pdebaets View Post
    Here's some info on how to create an event procedure: http://peterssoftware.com/faq.htm#quiz2
    Thanks, will try

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

Similar Threads

  1. help with creating data restrictions
    By aburaed in forum Access
    Replies: 3
    Last Post: 08-30-2011, 05:41 PM
  2. users only need to see forms.
    By BF15 in forum Security
    Replies: 1
    Last Post: 08-25-2011, 05:25 PM
  3. Multiple Users :)
    By greatfallz in forum Access
    Replies: 1
    Last Post: 08-21-2011, 02:40 PM
  4. Multiple Users
    By jo15765 in forum Forms
    Replies: 2
    Last Post: 12-03-2010, 09:51 PM
  5. Form Restrictions
    By Evgeny in forum Forms
    Replies: 4
    Last Post: 04-22-2010, 03:50 PM

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