Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8935515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:00:02+00:00 2026-06-15T10:00:02+00:00

is it possible in MS Access 2010 to restrict the records a user can

  • 0

is it possible in MS Access 2010 to restrict the records a user can see in a dataview form? For example User A should only see records from department A, whereas User B should only see records from department B.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T10:00:05+00:00Added an answer on June 15, 2026 at 10:00 am

    Create a query which uses your business rule as a constraint to return only the subset of rows the user should be allowed to access. Then build your form with that query as its record source.

    That approach depends on 2 conditions:

    1. You have a method to identify the current user.
    2. You can implement your business rule as a query WHERE clause.

    You can use an API method to get the Windows account name of the current user. See an example at Get Login name. If your db file is MDB format, you could set up ULS (user level security), and get the Access user name with the CurrentUser() function. ULS is not supported in the newer ACCDB format, but Access 2010 can still use MDB format db files.

    Either of those approaches could satisfy the first condition. You could also develop code to manage custom user accounts, but that seems like too much extra work to me.

    Something like this could implement your business rule as a query WHERE clause. It uses the fOSUserName() function from the link above.

    WHERE
        department = Switch(
            fOSUserName() = 'User A', 'department A',
            fOSUserName() = 'User B', 'department B')
    

    However, a less brittle approach would be to inner join a table which contains the user names matched with the department(s) they should be allowed to view.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It is possible to access Exchange 2010 Addressbook from a PowerShell Script which is
Is it possible to restrict access to a Team Foundation Server 2010 to a
Is it somehow possible to access a user's public key files (located in ~/.ssh
Is it possible to access the Data Purge Tool from the Valence API?
Is it possible to access the std::for_each iterator, so I can erase the current
Is it possible to set an excel 2010 built in RibbonButton to enabled=false from
Is it possible to access all the WPF Items from a winforms Project when
Is it possible to host microsoft access 2010 in WPF or Windows Forms as
I've noticed that Access 2010 (maybe earlier also) - can prepera database for replication,
Is it possible to access a class member without an instance of the class?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.