Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Nov 2002
    Location
    South Carolina, USA
    Posts
    257
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Currentuser() feature (access 97 sr2)

    I have a database in Access 97 sr2 that I have secured using the currentuser feature in a query. This is great. The users can only view their associated employees and no other employees. I have one problem. I need for the administrator view all records. How can I do this and still user the currentuser feature.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Currentuser() feature (access 97 sr2)

    Do you have CurrentUser() as criteria for a field in the query? If so, try replacing it with
    <code>
    Like IIf(CurrentUser()="TheBoss","*",CurrentUser())
    </code>
    where TheBoss is the name of the 'administrator' user.

  3. #3
    3 Star Lounger
    Join Date
    Nov 2002
    Location
    South Carolina, USA
    Posts
    257
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Currentuser() feature (access 97 sr2)

    THANK YOU! It worked wonderfully!!!

    I can now sleep tonight.

Posting Permissions

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