• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

10. Multiuser Applications > 10.6. Adjust an Application Based on Who’s Logged ...

10.6. Adjust an Application Based on Who’s Logged In

Problem

You’ve secured your database so that certain classes of users can’t edit data using a particular form or run a specific report, but this doesn’t prevent them from trying to open the form or report and receiving a permission error. You’d like your application to adjust itself based on the current user’s security level. Is there any way to accomplish this?

Solution

Using VBA code, you can create a function that determines if the current user is a member of a security group. Based on the value this function returns, you can change any runtime property of any form or control, thus adapting your application to the user’s security level.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint