Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / May 2007

Tip: Looking for answers? Try searching our database.

Display data based on user role

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
agene - 18 May 2007 00:26 GMT
I have three separate db that all display the same fields, but different data
based on the product for the db.  Since the Forms tables and Reports are
exactly the same regardless of user, i would like to combine the three db
into one for ease of maintenance. The only difference would be a query that
would determine what role the user is and therefore what product's data to
display.

Any suggestions on how to set this up?
Armen Stein - 18 May 2007 15:07 GMT
>I have three separate db that all display the same fields, but different data
>based on the product for the db.  Since the Forms tables and Reports are
[quoted text clipped - 4 lines]
>
>Any suggestions on how to set this up?

I assume you are not using Access User permissions.

You can determine the user's Windows login with this code:
http://www.mvps.org/access/api/api0008.htm

Then, in an Access table, you can relate each Windows user to the
Product that they should be able to see.

When your forms and reports display data, you can use that table to
limit the products that they see.

Be aware that anyone with knowledge of Access would be able to
circumvent this, so you shouldn't use it for truly senstive data. It's
just a convenience feature.

Armen Stein
Microsoft Access MVP
www.JStreetTech.com
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.