Display data based on user role

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
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?

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top