Security Permissions

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

Guest

So I've come to the end of a long road. A database some 10 months in the
making. The database requires each user to have a set of limitations.
Everything works great for the administrators and the full data users. I'm
getting hung up on the read-only users though. Some forms are insert forms
so Access will do one of two things: Treat it as an error and fail (which I
can put in an error handler and redirect it to the previous form) or it will
display a blank form in which the user can only close out of (and since close
buttons are disabled they exit Access). And I was wondering what the best
solution would be. It wouldn't be a "null" situation would it? and I
imagine the bit of code would appear on the open/load event. Thanks in
advance.
 
Personally, I prefer to hide / show the CommandButtons depending on the
user's permissions. For example, if the user has Read-Only permission, all
the "Add New" CommandButtons will be hidden and therefore not available to
the user.
 
That sounds like the best course of action. You wouldn't by chance know the
syntax for the if statement would you?

like:

If User.Group = Read-Only User Then.....

I know that's incorrect syntax, but is it something along the lines of that?
Thanks again.
 
I may not work that way since a User can belong to more than one group.

Check Access VB Help / DAO section on the Groups Collection / Group Object
and Users Collection / User Object.
 

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